/**
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
define(["ojs/ojcore","jquery","ojL10n!ojtranslations/nls/localeElements","ojs/ojmessaging"],function(a,g,b){a.$a={};o_("LocaleData",a.$a,a);a.$a.w_=function(b){a.$a.tR=b};o_("LocaleData.setBundle",a.$a.w_,a);a.$a.uF=function(){return a.$a.eU("firstDay")};o_("LocaleData.getFirstDayOfWeek",a.$a.uF,a);a.$a.CIa=function(){return a.$a.eU("weekendStart")};o_("LocaleData.getWeekendStart",a.$a.CIa,a);a.$a.BIa=function(){return a.$a.eU("weekendEnd")};o_("LocaleData.getWeekendEnd",a.$a.BIa,a);a.$a.rF=function(b){if(null==
b||"abbreviated"!==b&&"narrow"!==b)b="wide";b=a.$a.fT().days["stand-alone"][b];return[b.sun,b.mon,b.tue,b.wed,b.thu,b.fri,b.sat]};o_("LocaleData.getDayNames",a.$a.rF,a);a.$a.wF=function(b){if(null==b||"abbreviated"!==b&&"narrow"!==b)b="wide";b=a.$a.fT().months["stand-alone"][b];return[b["1"],b["2"],b["3"],b["4"],b["5"],b["6"],b["7"],b["8"],b["9"],b["10"],b["11"],b["12"]]};o_("LocaleData.getMonthNames",a.$a.wF,a);a.$a.Tha=function(){var b=a.$a.fT().dateFormats["long"].toUpperCase(),c=b.indexOf("M"),
b=b.indexOf("Y");return c<b};o_("LocaleData.isMonthPriorToYear",a.$a.Tha,a);a.$a.eU=function(b){var c=a.$a.Il(),d=a.$a.Jva()||"001";b=c.supplemental.weekData[b];d=b[d];void 0===d&&(d=b["001"]);return d};a.$a.fT=function(){var b=a.$a.Il().main,c,d;for(d in b)if(b.hasOwnProperty(d)){c=b[d];break}return c.dates.calendars.gregorian};a.$a.Jva=function(){var b=a.fa.hj();if(b&&(b=b.toUpperCase().split(/-|_/),2<=b.length)){var c=b[1];if(4==c.length){if(3<=b.length)return b[2]}else return c}return null};a.$a.Il=
function(){var c=a.$a.tR;return c?c:a.py()?(a.p.assert(void 0!==b,"LocaleElements module must be loaded"),b):{}};a.$a.hpa=function(a){b=a};a.za={};o_("Validation",a.za,a);a.za.gS={};a.za.MX={};a.za.k6={};a.za.n6={};a.za.kH={converter:{name:"oj.ConverterFactory",type:a.Hi},validator:{name:"oj.ValidatorFactory",type:a.Ve}};a.za.dj=function(b,c){var d;b&&!c?d=a.za.xJ(b,a.za.gS):b&&c&&(d=a.za.Cz(b,c,a.za.gS,a.za.kH.converter));return d};o_("Validation.converterFactory",a.za.dj,a);a.za.sx=function(b,c){var d;
b&&!c?d=a.za.xJ(b,a.za.MX):b&&c&&(d=a.za.Cz(b,c,a.za.MX,a.za.kH.validator));return d};o_("Validation.validatorFactory",a.za.sx,a);a.za.nga=function(b){return a.za.xJ(b,a.za.k6)};o_("Validation.getDefaultConverterFactory",a.za.nga,a);a.za.WHa=function(b){return a.za.xJ(b,a.za.n6)};o_("Validation.getDefaultValidatorFactory",a.za.WHa,a);a.za.Q3=function(b,c){var d=a.za.kH.converter;a.za.Cz(b,c,a.za.k6,d);a.za.Cz(b,c,a.za.gS,d)};a.za.qy=function(b,c){var d=a.za.kH.validator;a.za.Cz(b,c,a.za.n6,d);a.za.Cz(b,
c,a.za.MX,d)};a.za.dta=function(b,c,d){if(c&&!a.za.KBa(b,c))throw Error("Factory instance does not implement the methods expected by the factory of type "+d);};a.za.xJ=function(b,c){a.p.Vq(b);var d=null;b&&(b=b.toLowerCase(),d=(c[b]||{}).instance||null);return d};a.za.KBa=function(b,c){var d=!0,e;a.p.mi(b);a.p.mi(c);for(e in c)if(c.hasOwnProperty(e)&&"function"===typeof c[e]&&!b[e]&&"function"!==typeof b[e]){d=!1;break}return d};a.za.Cz=function(b,c,d,e){a.p.Vq(b);a.p.mi(c);if(b){var h={};h.instance=
c;a.za.dta(c,e.type,e.name);d[b.toLowerCase()]=h}};a.Hi={CONVERTER_TYPE_NUMBER:"number",CONVERTER_TYPE_DATETIME:"datetime",createConverter:function(){}};o_("ConverterFactory",a.Hi,a);a.Ve={VALIDATOR_TYPE_REQUIRED:"required",VALIDATOR_TYPE_REGEXP:"regexp",VALIDATOR_TYPE_NUMBERRANGE:"numberRange",VALIDATOR_TYPE_LENGTH:"length",VALIDATOR_TYPE_DATETIMERANGE:"dateTimeRange",VALIDATOR_TYPE_DATERESTRICTION:"dateRestriction",createValidator:function(){}};o_("ValidatorFactory",a.Ve,a);a.wg=function(a){this.Init(a)};
o_("Converter",a.wg,a);a.b.sa(a.wg,a.b,"oj.Converter");a.wg.prototype.Init=function(b){a.wg.u.Init.call(this);this.Yb=b};a.b.g("Converter.prototype.Init",{Init:a.wg.prototype.Init});a.wg.prototype.Nd=function(){a.p.kd();return null};a.b.g("Converter.prototype.getHint",{Nd:a.wg.prototype.Nd});a.wg.prototype.fl=function(){return this.Yb||{}};a.b.g("Converter.prototype.getOptions",{fl:a.wg.prototype.fl});a.wg.prototype.parse=function(){a.p.kd();return null};a.b.g("Converter.prototype.parse",{parse:a.wg.prototype.parse});
a.wg.prototype.format=function(){a.p.kd();return null};a.b.g("Converter.prototype.format",{format:a.wg.prototype.format});a.wg.prototype.resolvedOptions=function(){var a={};g.extend(a,this.Yb);return a};a.b.g("Converter.prototype.resolvedOptions",{resolvedOptions:a.wg.prototype.resolvedOptions});a.xg=function(b,c){var d=new a.ia(b,c,a.ia.Vc.ERROR);this.Init(d)};o_("ConverterError",a.xg,a);a.xg.prototype=Error();a.xg.prototype.Init=function(a){var b=a.detail,c=a.summary;this.uz=a;this.name="Converter Error";
this.message=b||c};a.b.g("ConverterError.prototype.Init",{Init:a.xg.prototype.Init});a.xg.prototype.qA=function(){return this.uz};a.b.g("ConverterError.prototype.getMessage",{qA:a.xg.prototype.qA});a.xl=function(){this.Init()};o_("NumberConverter",a.xl,a);a.b.sa(a.xl,a.wg,"oj.NumberConverter");a.xl.prototype.Init=function(b){a.xl.u.Init.call(this,b)};a.b.g("NumberConverter.prototype.Init",{Init:a.xl.prototype.Init});a.xl.prototype.format=function(b){return a.xl.u.format.call(this,b)};a.b.g("NumberConverter.prototype.format",
{format:a.xl.prototype.format});a.xl.prototype.parse=function(b){return a.xl.u.parse.call(this,b)};a.b.g("NumberConverter.prototype.parse",{parse:a.xl.prototype.parse});a.Cc=function(a){this.Init(a)};o_("DateTimeConverter",a.Cc,a);a.b.sa(a.Cc,a.wg,"oj.DateTimeConverter");a.Cc.prototype.Init=function(b){a.Cc.u.Init.call(this,b)};a.b.g("DateTimeConverter.prototype.Init",{Init:a.Cc.prototype.Init});a.Cc.prototype.format=function(b){return a.Cc.u.format.call(this,b)};a.b.g("DateTimeConverter.prototype.format",
{format:a.Cc.prototype.format});a.Cc.prototype.IF=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isHourInDaySet",{IF:a.Cc.prototype.IF});a.Cc.prototype.HF=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isHourInAMPMSet",{HF:a.Cc.prototype.HF});a.Cc.prototype.KF=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isMinuteSet",{KF:a.Cc.prototype.KF});a.Cc.prototype.MF=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isSecondSet",{MF:a.Cc.prototype.MF});a.Cc.prototype.JF=
function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isMilliSecondSet",{JF:a.Cc.prototype.JF});a.Cc.prototype.NF=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isYearSet",{NF:a.Cc.prototype.NF});a.Cc.prototype.LF=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isMonthSet",{LF:a.Cc.prototype.LF});a.Cc.prototype.GF=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isDaySet",{GF:a.Cc.prototype.GF});a.Cc.prototype.FF=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.isDayNameSet",
{FF:a.Cc.prototype.FF});a.Cc.prototype.vt=function(){a.p.kd()};a.b.g("DateTimeConverter.prototype.calculateWeek",{vt:a.Cc.prototype.vt});a.Cc.prototype.parse=function(b){return a.Cc.u.parse.call(this,b)};a.b.g("DateTimeConverter.prototype.parse",{parse:a.Cc.prototype.parse});a.Cc.prototype.we=function(b,c){return a.Cc.u.we.call(this,b,c)};a.b.g("DateTimeConverter.prototype.compareISODates",{we:a.Cc.prototype.we});a.Qi=function(){this.Init()};o_("Validator",a.Qi,a);a.b.sa(a.Qi,a.b,"oj.Validator");
a.Qi.prototype.Init=function(){a.Qi.u.Init.call(this)};a.b.g("Validator.prototype.Init",{Init:a.Qi.prototype.Init});a.Qi.prototype.validate=function(){a.p.kd()};a.b.g("Validator.prototype.validate",{validate:a.Qi.prototype.validate});a.Qi.prototype.Nd=function(){a.p.kd()};a.b.g("Validator.prototype.getHint",{Nd:a.Qi.prototype.Nd});a.Fk=function(b,c){var d=new a.ia(b,c,a.ia.Vc.ERROR);this.Init(d)};o_("ValidatorError",a.Fk,a);a.Fk.prototype=Error();a.Fk.prototype.Init=function(a){var b=a.detail,c=a.summary;
this.uz=a;this.name="Validator Error";this.message=b||c};a.b.g("ValidatorError.prototype.Init",{Init:a.Fk.prototype.Init});a.Fk.prototype.qA=function(){return this.uz};a.b.g("ValidatorError.prototype.getMessage",{qA:a.Fk.prototype.qA});a.Kh=function(a){this.Init(a)};o_("RequiredValidator",a.Kh,a);a.b.sa(a.Kh,a.Qi,"oj.RequiredValidator");a.Kh.KP="oj-validator.required.detail";a.Kh.LP="oj-validator.required.summary";a.Kh.prototype.Init=function(b){a.Kh.u.Init.call(this);this.Yb=b};a.b.g("RequiredValidator.prototype.Init",
{Init:a.Kh.prototype.Init});a.Kh.prototype.validate=function(b){var c,d="",e,h={};if("number"===typeof b&&0===b||b&&0!==b.length)return!0;this.Yb&&(c=this.Yb.messageDetail||this.Yb.message||null,e=this.Yb.messageSummary||null,d=this.Yb.label||"");h={label:d};b=e?a.va.Lc(e,h):a.va.F(this.XT(),h);c=c?a.va.Lc(c,h):a.va.F(this.mT(),h);throw new a.Fk(b,c);};a.b.g("RequiredValidator.prototype.validate",{validate:a.Kh.prototype.validate});a.Kh.prototype.Nd=function(){var b="";this.Yb&&this.Yb.hint&&(b=a.va.F(this.Yb.hint));
return b};a.b.g("RequiredValidator.prototype.getHint",{Nd:a.Kh.prototype.Nd});a.Kh.prototype.XT=function(){return a.Kh.LP};a.Kh.prototype.mT=function(){return a.Kh.KP};a.Gm=function(a){this.Init(a)};o_("DateRestrictionValidator",a.Gm,a);a.b.sa(a.Gm,a.Qi,"oj.DateRestrictionValidator");a.Gm.prototype.Init=function(b){a.Gm.u.Init.call(this);this.Jsa=b.dayFormatter;this.Pc=a.Na.getConverterInstance(b.converter);b&&(this.rAa=b.messageSummary||null,this.qAa=b.messageDetail||null)};a.b.g("DateRestrictionValidator.prototype.Init",
{Init:a.Gm.prototype.Init});a.Gm.prototype.Bya=function(a){var b=this.Jsa;return b?(a=b({fullYear:a.fullYear,month:a.month+1,date:a.date}))&&a.disabled:!1};a.Gm.prototype.validate=function(b){var c="",d="",d=a.va,c=this.rAa,e=this.qAa,h=b?this.Pc.format(b):b,f=b?a.Na._dateTime(b,["fullYear","month","date"],!0):null;if(null===b)return b;if(this.Bya(f))throw c=c?d.Lc(c,{value:h}):d.F("oj-validator.restriction.date.messageSummary",{value:h}),d=e?d.Lc(e,{value:h}):d.F("oj-validator.restriction.date.messageDetail",
{value:h}),new a.Fk(c,d);return b};a.b.g("DateRestrictionValidator.prototype.validate",{validate:a.Gm.prototype.validate});a.Gm.prototype.Nd=function(){return null};a.b.g("DateRestrictionValidator.prototype.getHint",{Nd:a.Gm.prototype.Nd});a.ao=function(a){this.Init(a)};o_("DateTimeRangeValidator",a.ao,a);a.b.sa(a.ao,a.Qi,"oj.DateTimeRangeValidator");a.ao.prototype.Init=function(b){a.ao.u.Init.call(this);this.Pc=a.Na.getConverterInstance(b.converter);this.$i=b.min||null;this.Xj=b.max||null;b&&(this.DD=
b.hint||{},this.QC=b.messageSummary||{},this.PC=b.messageDetail||{})};a.b.g("DateTimeRangeValidator.prototype.Init",{Init:a.ao.prototype.Init});a.ao.prototype.validate=function(b){var c=this.QC,d=this.PC,e=d.rangeOverflow,d=d.rangeUnderflow,h=c.rangeOverflow,c=c.rangeUnderflow,f=a.Na,g=this.$i,p=this.Xj,n="",u="",v=a.va,w=null,w=b?this.Pc.format(b):b,y,x;if(null===b)return b;w=this.Pc.format(b);g&&(g=f._minMaxIsoString(g,b),y=this.Pc?this.Pc.format(g):g);p&&(p=f._minMaxIsoString(p,b),x=this.Pc?this.Pc.format(p):
p);if(null!==g&&null!==p){if(0<=this.Pc.we(b,g)&&0>=this.Pc.we(b,p)||0<this.Pc.we(g,p))return b}else if(null!==g){if(0<=this.Pc.we(b,g))return b}else if(null===p||0>=this.Pc.we(b,p))return b;null!==p&&0<this.Pc.we(b,p)?(w={value:w,max:x},n=h?h:v.F("oj-validator.range.datetime.messageSummary.rangeOverflow"),u=e?v.Lc(e,w):v.F("oj-validator.range.datetime.messageDetail.rangeOverflow",w)):null!==g&&0>this.Pc.we(b,g)&&(w={value:w,min:y},n=c?c:v.F("oj-validator.range.datetime.messageSummary.rangeUnderflow"),
u=d?v.Lc(d,w):v.F("oj-validator.range.datetime.messageDetail.rangeUnderflow",w));throw new a.Fk(n,u);};a.b.g("DateTimeRangeValidator.prototype.validate",{validate:a.ao.prototype.validate});a.ao.prototype.Nd=function(){var b=null,c=this.DD,d=c.inRange,e=c.min,c=c.max,h=this.$i,f=this.Xj,g=h&&this.Pc?this.Pc.format(h):h,p=f&&this.Pc?this.Pc.format(f):f,n=null,u=a.va;null!==h&&null!==f?(n={min:g,max:p},b=d?u.Lc(d,n):u.F("oj-validator.range.datetime.hint.inRange",n)):null!==h?(n={min:g},b=e?u.Lc(e,n):
u.F("oj-validator.range.datetime.hint.min",n)):null!==f&&(n={max:p},b=c?u.Lc(c,n):u.F("oj-validator.range.datetime.hint.max",n));return b};a.b.g("DateTimeRangeValidator.prototype.getHint",{Nd:a.ao.prototype.Nd});a.Lla=function(){return{createConverter:function(b){return new a.Hf(b)}}}();a.za.Q3(a.Hi.CONVERTER_TYPE_NUMBER,a.Lla);a.dla=function(){return{createConverter:function(b){return new a.Cb(b)}}}();a.za.Q3(a.Hi.CONVERTER_TYPE_DATETIME,a.dla);a.Rla=function(){return{createValidator:function(b){return new a.Kh(b)}}}();
a.za.qy(a.Ve.VALIDATOR_TYPE_REQUIRED,a.Rla);a.Qla=function(){return{createValidator:function(b){return new a.Jh(b)}}}();a.za.qy(a.Ve.VALIDATOR_TYPE_REGEXP,a.Qla);a.ela=function(){return{createValidator:function(b){return new a.ao(b)}}}();a.za.qy(a.Ve.VALIDATOR_TYPE_DATETIMERANGE,a.ela);a.cla=function(){return{createValidator:function(b){return new a.Gm(b)}}}();a.za.qy(a.Ve.VALIDATOR_TYPE_DATERESTRICTION,a.cla);a.Mla=function(){return{createValidator:function(b){return new a.eo(b)}}}();a.za.qy(a.Ve.VALIDATOR_TYPE_NUMBERRANGE,
a.Mla);a.yla=function(){return{createValidator:function(b){return new a.zk(b)}}}();a.za.qy(a.Ve.VALIDATOR_TYPE_LENGTH,a.yla);var c={Pp:{latn:"0123456789",arab:"\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669",thai:"\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59"},MKa:/^\s+|\s+$|\u200f|\u200e/g,NKa:/\s+|\u200f|\u200e/g,OKa:/0+$/g,iMa:["0","00","000"],bQ:/^\d{4}(?:-?\d{2}(?:-?\d{2})?)?(?:T\d{2}:?\d{2}(?::?\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?)?$|^T\d{2}:?\d{2}(?::?\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2})?$/,
getLocalTimeZoneOffset:function(){return c.wA("Etc/GMT",(new Date).getTimezoneOffset(),!1,!1)},c9:function(a){if(!a||"string"!==typeof a)return null;var b=c.bQ.exec(a);null===b&&c.jea(a);return void 0!==b[1]?b[1]:null},dateToLocalIso:function(a){var b=c.tc(a.getFullYear(),4)+"-"+c.tc(a.getMonth()+1,2)+"-"+c.tc(a.getDate(),2)+"T"+c.tc(a.getHours(),2)+":"+c.tc(a.getMinutes(),2)+":"+c.tc(a.getSeconds(),2);0<a.getMilliseconds()&&(b+="."+c.xO(c.tc(a.getMilliseconds(),3)));return b},zKa:function(a){var b=
c.tc(a[0],4)+"-"+c.tc(a[1],2)+"-"+c.tc(a[2],2)+"T"+c.tc(a[3],2)+":"+c.tc(a[4],2)+":"+c.tc(a[5],2);0<a[6]&&(b+="."+c.xO(c.tc(a[6],3)));return b},isoToLocalDate:function(a){return a&&"string"===typeof a?this.Nza(a):null},Nza:function(a){a=c.Ru(a);return new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5],a[6])},Ru:function(a){var b=a.split("T"),d=a.indexOf("T");a=new Date;var e=[a.getFullYear(),a.getMonth()+1,a.getDate(),0,0,0,0];if(""!==b[0]){var h=b[0].split("-");for(a=0;a<h.length;a++)e[a]=parseInt(h[a],10)}if(-1!==
d){b=b[1].split(".");d=b[0].split(":");for(a=0;a<d.length;a++)e[3+a]=parseInt(d[a],10);2===b.length&&b[1]&&(e[6]=parseInt(c.W_(b[1],3,!1),10))}return e},oA:function(a){var b={format:null,dateTime:null,timeZone:"",isoStrParts:null},d=c.bQ.exec(a);null===d&&c.jea(a);if(void 0===d[1]&&void 0===d[2])return b.format="local",b.dateTime=a,b.isoStrParts=c.Ru(b.dateTime),b;b.timeZone=void 0!==d[1]?d[1]:d[2];b.format="Z"===b.timeZone?"zulu":"offset";b.dateTime=a.substring(0,a.indexOf(b.timeZone));b.isoStrParts=
c.Ru(b.dateTime);return b},vNa:function(){var a;a=Error("time zone is not supported");a.errorInfo={errorCode:"timeZoneNotSupported"};throw a;},jea:function(a){var b;b=Error("The string "+a+" is not a valid ISO 8601 string.");b.errorInfo={errorCode:"invalidISOString",parameterMap:{isoStr:a}};throw b;},trim:function(a){return(a+"").replace(c.MKa,"")},xO:function(a){return(a+"").replace(c.OKa,"")},Tp:function(a){return(a+"").replace(c.NKa,"")},ox:function(a,b){return 0===a.indexOf(b)},vj:function(a){return a.split("\u00a0").join(" ").toUpperCase()},
tc:function(a,b){var d;d=a+"";return 1<b&&d.length<b?(d=c.iMa[b-2]+d,d.substr(d.length-b,b)):d},W_:function(a,b,c){a=""+a;var d;for(d=a.length;d<b;d+=1)a=c?"0"+a:a+"0";return a},wA:function(a,b,d,e){d=d?0<=b:0>b;b=Math.abs(b);var h=b/60<<0;b%=60;e&&(h=c.W_(h,2,!0));a=a+(d?"-":"+")+h;if(0<b||e)a+=":"+c.W_(b,2,!0);return a},fIa:function(a,b){if(void 0===b)return"latn";var d=c.QM(b);void 0===a.numbers["symbols-numberSystem-"+d]&&(d="latn");return d},NNa:function(a){return a.split("-")[0]},bga:function(a){a=
a.split("-");return 3===a.length?a[2]:2===a.length&&2===a[1].length?a[1]:"001"},QM:function(a){a=a||"en-US";var b=a.indexOf("-u-nu-"),c="latn";-1!==b&&(c=a.substr(b+6,4));return c},PNa:function(a){var b=0,c;for(c in a)b++;return b},ng:function(a){a=a.main;var b,c;for(c in a){b=c;break}return a[b]},Lw:function(a){a=a.main;var b,c;for(c in a){b=c;break}return b},fFa:function(a){if("string"===typeof a)switch(a.toLowerCase().trim()){case "true":case "1":return!0;case "false":case "0":return!1}return a},
si:function(a,b){if(void 0===a)throw Error("Internal "+b+" error. Default options missing.");return function(d,e,h,f){if(void 0!==a[d]){f=a[d];switch(e){case "boolean":f=c.fFa(f);break;case "string":f=String(f);break;case "number":f=Number(f);break;default:throw Error("Internal error. Wrong value type.");}if(void 0!==h&&-1===h.indexOf(f)){e=[];for(f=0;f<h.length;f++)e.push(h[f]);h=new RangeError("The value '"+a[d]+"' is out of range for '"+b+"' options property '"+d+"'. Valid values: "+e);h.errorInfo=
{errorCode:"optionOutOfRange",parameterMap:{propertyName:d,propertyValue:a[d],propertyValueValid:e,caller:b}};throw h;}}return f}},VNa:function(a,b,d,e){void 0===e&&(e={sLa:"base",mOa:"sort"});var h=c.si(e,"OraI18nUtils.matchString");e.usage=h("usage","string",["sort","search"],"sort");e.sensitivity=h("sensitivity","string",["base","accent","case","variant"],"base");for(var f,g=a.length,p=b.length-1,h=0;h<g;h++)for(f=0;3>f;f++){var n=g-h,n=Math.min(n,p+f);if(0===a.substr(h,n).localeCompare(b,d,e))return[h,
h+n-1]}return null}},d={fullYear:{Gr:0,bu:4},month:{Gr:1,bu:2},date:{Gr:2,bu:2},hours:{Gr:3,bu:2},minutes:{Gr:4,bu:2},seconds:{Gr:5,bu:2},milliseconds:{Gr:6,bu:3},timeZone:{Gr:7}};c.isoToDate=function(a){return new Date(this._normalizeIsoString(a))};c._copyTimeOver=function(a,b){if(!a||!b)throw Error("Provided invalid arguments");b=this._normalizeIsoString(b);var c=a.indexOf("T"),d=b.indexOf("T");return b.substring(0,d)+(-1!==c?a.substring(c):"T00:00:00.000")};c._clearTime=function(a){return this._dateTime(a,
{hours:0,minutes:0,seconds:0,milliseconds:0})};c._dateTime=function(a,b,c){if(!a||!b)throw Error("Invalid argument invocation");var e,h=null,f=null,f=this.tc;a=this._normalizeIsoString(a);var q=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):?(\d{2})?\.?(\d{3})?(.*)?/.exec(a);if(!q)throw Error("Unable to capture anything");q=q.slice(1);if(Array.isArray(b))for(var h={},p=0,n=b.length;p<n;p++){if(f=b[p],f in d){a=d[f].Gr;e=q[a];if(c&&"timeZone"===f)throw Error("Dude you tried to ask timezone to be parsed");
c?(e=parseInt(e,10),h[f]=1===a?e-1:e):h[f]=e}}else if(g.isPlainObject(b)){for(p in b)c=d[p],a=c.Gr,e=b[p],1===a&&"number"===typeof e&&e++,q[a]=c.bu?f(e,c.bu):e;h=q[0]+"-"+q[1]+"-"+q[2]+"T"+q[3]+":"+q[4]+":"+q[5]+(6<q.length&&q[6]?"."+q[6]+(8===q.length&&q[7]?q[7]:""):"")}return h};c._normalizeIsoString=function(a){if(!a)throw Error("Provided invalid arguments");var b=(new Date).toISOString(),b=b.substring(0,b.indexOf("T")),c=a.indexOf("T"),d=-1===c?a:a.substring(0,c);-1!==c?(a=a.substring(c),a=1<
a.split(":").length?a:a+":00"):a="T00:00:00.000";return(d||b)+a};c.formatHM=function(a){a=a.replace(/\'[^']*\'/g,"").replace(/[^hHma]*/g,"");return a=a.replace(/(h|H)+/,"h").replace(/m+/,"m")};c.extractHourCode=function(a,b){var c;"h"===a?(c=b.match(/([hH]+)/),c=c[1]):"m"===a&&(c=b.match(/(m+)/),c=c[1]);return c};c.hFormat=function(a){return 0===a?"12":""+a};c.hhFormat=function(a){return 0===a?"12":("0"+a).slice(-2)};c.HFormat=function(a){return""+a};c.HHFormat=function(a){return("0"+a).slice(-2)};
c.mmFormat=function(a){return("0"+a).slice(-2)};c.CNa=function(a){return["AM","PM"][a]};c.kMa={h:c.hFormat,hh:c.hhFormat,H:c.HFormat,HH:c.HHFormat,mm:c.mmFormat};c.numberParser=function(a){return a.match(/^\d+$/)?parseInt(a,10):-1};c.hour12Parser=function(a){return a.match(/^\d+$/)?(a=parseInt(a,10),0===a&&(a=-1),12===a&&(a=0),a):-1};c.ampmParser=function(a){a=a.toLowerCase().charAt(0);return"a"===a?0:"p"===a?1:-1};c.nMa={h:c.hour12Parser,hh:c.hour12Parser,H:c.numberParser,HH:c.numberParser,mm:c.numberParser};
c.isoToMinutes=function(a){a=c.isoToLocalDate(a);return 60*a.getHours()+a.getMinutes()};c.minutesToIso=function(a){a=Math.floor(a);var b=Math.floor(a/60);a%=60;return"T"+c.HHFormat(b)+":"+c.mmFormat(a)};a.Cb=function(a){this.Init(a)};o_("IntlDateTimeConverter",a.Cb,a);a.b.sa(a.Cb,a.Cc,"oj.IntlDateTimeConverter");a.Cb.xma=new Date(1998,10,29,15,45,31);a.Cb.prototype.Init=function(b){a.Cb.u.Init.call(this,b)};a.b.g("IntlDateTimeConverter.prototype.Init",{Init:a.Cb.prototype.Init});a.Cb.prototype.No=
function(){this.fF||(this.fF=h.Qe());return this.fF};a.Cb.prototype.format=function(b){var c=a.$a.Il(),d=a.fa.hj(),e=this.resolvedOptions();if(null==b||"string"===typeof b&&0===a.cb.trim(""+b).length)return"";try{return this.No().format(b,c,e,d)}catch(h){throw b=this.ct(h,b),b;}};a.b.g("IntlDateTimeConverter.prototype.format",{format:a.Cb.prototype.format});a.Cb.prototype.HM=function(b,c){var d=a.$a.Il(),e=a.fa.hj();try{return this.No().HM(b,d,c,e)}catch(h){throw d=this.ct(h,b),d;}};a.b.g("IntlDateTimeConverter.prototype.formatRelative",
{HM:a.Cb.prototype.HM});a.Cb.prototype.Nd=function(){var a=this.resolvedOptions().patternFromOptions||this.fl().pattern;return a?a.toLowerCase():""};a.b.g("IntlDateTimeConverter.prototype.getHint",{Nd:a.Cb.prototype.Nd});a.Cb.prototype.BJ=function(){var b="";try{b=this.format(a.Na.dateToLocalIso(a.Cb.xma))}catch(c){c instanceof a.xg&&(b="")}finally{return b}};a.Cb.prototype.fl=function(){return a.Cb.u.fl.call(this)};a.b.g("IntlDateTimeConverter.prototype.getOptions",{fl:a.Cb.prototype.fl});a.Cb.prototype.resolvedOptions=
function(){var b,c=a.fa.hj(),d=this.fl();if(c!==this.qz||!this.FE){b=a.$a.Il();try{if(!b)return a.t.error("locale bundle for the current locale %s is unavailable",c),{};this.FE=this.No().resolvedOptions(b,d,c);this.qz=c}catch(e){throw b=this.ct(e),b;}}return this.FE};a.b.g("IntlDateTimeConverter.prototype.resolvedOptions",{resolvedOptions:a.Cb.prototype.resolvedOptions});a.Cb.prototype.IF=function(){var a=this.resolvedOptions(),b=a.hour12;return a.hour&&!b?!0:!1};a.b.g("IntlDateTimeConverter.prototype.isHourInDaySet",
{IF:a.Cb.prototype.IF});a.Cb.prototype.HF=function(){var a=this.resolvedOptions(),b=a.hour12;return a.hour&&b?!0:!1};a.b.g("IntlDateTimeConverter.prototype.isHourInAMPMSet",{HF:a.Cb.prototype.HF});a.Cb.prototype.KF=function(){return this.Pv("minute")};a.b.g("IntlDateTimeConverter.prototype.isMinuteSet",{KF:a.Cb.prototype.KF});a.Cb.prototype.MF=function(){return this.Pv("second")};a.b.g("IntlDateTimeConverter.prototype.isSecondSet",{MF:a.Cb.prototype.MF});a.Cb.prototype.JF=function(){return this.Pv("millisecond")};
a.b.g("IntlDateTimeConverter.prototype.isMilliSecondSet",{JF:a.Cb.prototype.JF});a.Cb.prototype.NF=function(){return this.Pv("year")};a.b.g("IntlDateTimeConverter.prototype.isYearSet",{NF:a.Cb.prototype.NF});a.Cb.prototype.LF=function(){return this.Pv("month")};a.b.g("IntlDateTimeConverter.prototype.isMonthSet",{LF:a.Cb.prototype.LF});a.Cb.prototype.GF=function(){return this.Pv("day")};a.b.g("IntlDateTimeConverter.prototype.isDaySet",{GF:a.Cb.prototype.GF});a.Cb.prototype.FF=function(){return this.Pv("weekday")};
a.b.g("IntlDateTimeConverter.prototype.isDayNameSet",{FF:a.Cb.prototype.FF});a.Cb.prototype.vt=function(b){return this.No().vt(b,a.$a.Il(),a.fa.hj())};a.b.g("IntlDateTimeConverter.prototype.calculateWeek",{vt:a.Cb.prototype.vt});a.Cb.prototype.parse=function(b){var c,d;if(null==b||""===b)return null;var e=a.$a.Il(),h=a.fa.hj(),f=this.resolvedOptions();try{return c=this.No().parse(b,e,f,h),(d=c.value)&&c.warning&&a.t.warn("The value "+b+" was leniently parsed to represent a date "+d.toString?d.toString():
d),d}catch(g){throw b=this.ct(g,b),b;}};a.b.g("IntlDateTimeConverter.prototype.parse",{parse:a.Cb.prototype.parse});a.Cb.prototype.we=function(b,c){var d=a.cb.Re;if(!d(b)||!d(c))throw Error("Invalid arguments for compareISODates ",b,c);return this.No().we(b,c,a.$a.Il())};a.b.g("IntlDateTimeConverter.prototype.compareISODates",{we:a.Cb.prototype.we});a.Cb.prototype.ct=function(b,c){var d=b.errorInfo,e,h,f,g;if(d)if(e=d.errorCode,d=d.parameterMap||{},a.p.mi(d),f=d.propertyName,b instanceof TypeError){if("optionTypesMismatch"===
e||"optionTypeInvalid"===e)h=a.Na.oy(e,d)}else b instanceof RangeError?"optionOutOfRange"===e?h=a.Na.oy(e,d):"datetimeOutOfRange"===e&&(e=a.va.F("oj-converter.datetime.datetimeOutOfRange.summary",{propertyName:f,value:d.value}),h=a.va.F("oj-converter.datetime.datetimeOutOfRange.detail",{minValue:d.minValue,maxValue:d.maxValue}),h=new a.xg(e,h)):b instanceof SyntaxError?"optionValueInvalid"===e&&(h=a.Na.oy(e,d)):b instanceof Error&&("dateFormatMismatch"===e?g="oj-converter.datetime.dateFormatMismatch.summary":
"timeFormatMismatch"===e?g="oj-converter.datetime.timeFormatMismatch.summary":"datetimeFormatMismatch"===e?g="oj-converter.datetime.datetimeFormatMismatch.summary":"invalidTimeZoneID"===e?(e=a.va.F("oj-converter.datetime.invalidTimeZoneID.summary",{timeZoneID:d.timeZoneID}),h=a.va.F("oj-converter.hint.detail",{exampleValue:this.BJ()}),h=new a.xg(e,h)):"nonExistingTime"===e?g="oj-converter.datetime.nonExistingTime.summary":"missingTimeZoneData"===e?g="oj-converter.datetime.missingTimeZoneData.summary":
"dateToWeekdayMismatch"===e&&(e=a.va.F("oj-converter.datetime.dateToWeekdayMismatch.summary",{date:d.date,weekday:d.weekday}),h=a.va.F("oj-converter.datetime.dateToWeekdayMismatch.detail"),h=new a.xg(e,h)),g&&(e=a.va.F(g,{value:c||d.value,format:d.format}),h=a.va.F("oj-converter.hint.detail",{exampleValue:this.BJ()}),h=new a.xg(e,h)));h||(h=e=b.message,h=new a.xg(e,h));return h};a.Cb.prototype.Pv=function(a){return this.resolvedOptions()[a]?!0:!1};a.eo=function(a){this.Init(a)};o_("NumberRangeValidator",
a.eo,a);a.b.sa(a.eo,a.Qi,"oj.NumberRangeValidator");a.eo.prototype.Init=function(b){a.eo.u.Init.call(this);b&&(this.$i=b.min,this.Xj=b.max,this.Pc=a.Na.getConverterInstance(b.converter),this.DD=b.hint||{},this.QC=b.messageSummary||{},this.PC=b.messageDetail||{})};a.b.g("NumberRangeValidator.prototype.Init",{Init:a.eo.prototype.Init});a.eo.prototype.validate=function(b){var c=b?b.toString():b,d=parseFloat(c),e=this.QC,h=this.PC,f=h.rangeOverflow,h=h.rangeUnderflow,g=e.rangeOverflow,e=e.rangeUnderflow,
p=void 0!==this.$i?parseFloat(this.$i):null,n=void 0!==this.Xj?parseFloat(this.Xj):null,u=p&&this.Pc?this.Pc.format(p):p,v=n&&this.Pc?this.Pc.format(n):n,w="",y="",x=null,z=a.va;if(null===b)return b;if(null!==p&&null!==n){if(d>=p&&d<=n||p>n)return c}else if(null!==p){if(d>=p)return c}else if(null===n||d<=n)return c;null!==n&&d>n?(x={value:b,max:v},w=g?g:z.F("oj-validator.range.number.messageSummary.rangeOverflow"),y=f?z.Lc(f,x):z.F("oj-validator.range.number.messageDetail.rangeOverflow",x)):null!==
p&&d<p&&(x={value:b,min:u},w=e?e:z.F("oj-validator.range.number.messageSummary.rangeUnderflow"),y=h?z.Lc(h,x):z.F("oj-validator.range.number.messageDetail.rangeUnderflow",x));throw new a.Fk(w,y);};a.b.g("NumberRangeValidator.prototype.validate",{validate:a.eo.prototype.validate});a.eo.prototype.Nd=function(){var b=null,c=this.DD,d=c.inRange,e=c.min,c=c.max,h=a.va,f=void 0!==this.$i?parseFloat(this.$i):null,g=void 0!==this.Xj?parseFloat(this.Xj):null,p=f&&this.Pc?this.Pc.format(f):f,n=g&&this.Pc?this.Pc.format(g):
g;null!==f&&null!==g?b=d?h.Lc(d,{min:p,max:n}):h.F("oj-validator.range.number.hint.inRange",{min:p,max:n}):null!==f?b=e?h.Lc(e,{min:p}):h.F("oj-validator.range.number.hint.min",{min:p}):null!==g&&(b=c?h.Lc(c,{max:n}):h.F("oj-validator.range.number.hint.max",{max:n}));return b};a.b.g("NumberRangeValidator.prototype.getHint",{Nd:a.eo.prototype.Nd});a.Hf=function(a){this.Init(a)};o_("IntlNumberConverter",a.Hf,a);a.b.sa(a.Hf,a.xl,"oj.IntlNumberConverter");a.Hf.prototype.Init=function(b){a.Hf.u.Init.call(this,
b)};a.b.g("IntlNumberConverter.prototype.Init",{Init:a.Hf.prototype.Init});a.Hf.prototype.No=function(){this.fF||(this.fF=f.Qe());return this.fF};a.Hf.prototype.format=function(b){var c,d,e;if(null==b||"string"===typeof b&&0===a.cb.trim(""+b).length||"number"===typeof b&&isNaN(b))return"";c=a.fa.hj();d=a.$a.Il();e=this.resolvedOptions();try{return this.No().format(b,d,e,c)}catch(h){throw b=this.ct(h,b),b;}};a.b.g("IntlNumberConverter.prototype.format",{format:a.Hf.prototype.format});a.Hf.prototype.Nd=
function(){return null};a.b.g("IntlNumberConverter.prototype.getHint",{Nd:a.Hf.prototype.Nd});a.Hf.prototype.fl=function(){return a.Hf.u.fl.call(this)};a.b.g("IntlNumberConverter.prototype.getOptions",{fl:a.Hf.prototype.fl});a.Hf.prototype.parse=function(b){var c,d,e;if(null==b||""===b)return null;c=a.fa.hj();d=a.$a.Il();e=this.resolvedOptions();try{return this.No().parse(a.cb.trim(b),d,e,c)}catch(h){throw b=this.ct(h,b),b;}};a.b.g("IntlNumberConverter.prototype.parse",{parse:a.Hf.prototype.parse});
a.Hf.prototype.resolvedOptions=function(){var b;b=a.fa.hj();var c;if(b!==this.qz||!this.FE){c=a.$a.Il();try{if(!c)return a.t.error("locale bundle for the current locale %s is unavailable",b),{};this.FE=this.No().resolvedOptions(c,this.fl(),b);this.qz=b}catch(d){throw b=this.ct(d),b;}}return this.FE};a.b.g("IntlNumberConverter.prototype.resolvedOptions",{resolvedOptions:a.Hf.prototype.resolvedOptions});a.Hf.prototype.ct=function(b,c){var d,e,h=b.errorInfo,f;if(h){e=h.errorCode;h=h.parameterMap;a.p.mi(h);
switch(e){case "optionTypesMismatch":case "optionTypeInvalid":d=a.Na.oy(e,h);break;case "optionOutOfRange":d=a.Na.oy(e,h);break;case "optionValueInvalid":d=a.Na.oy(e,h);break;case "decimalFormatMismatch":f="oj-converter.number.decimalFormatMismatch.summary";break;case "currencyFormatMismatch":f="oj-converter.number.currencyFormatMismatch.summary";break;case "percentFormatMismatch":f="oj-converter.number.percentFormatMismatch.summary";break;case "unsupportedParseFormat":e=a.va.F("oj-converter.number.decimalFormatUnsupportedParse.summary"),
d=a.va.F("oj-converter.number.decimalFormatUnsupportedParse.detail"),d=new a.xg(e,d)}f&&(e=a.va.F(f,{value:c||h.value,format:h.format}),d=a.va.F("oj-converter.hint.detail",{exampleValue:this.BJ()}),d=new a.xg(e,d))}d||(d=e=b.message,d=new a.xg(e,d));return d};a.Hf.prototype.BJ=function(){var b="";try{b=this.format(12345.98765)}catch(c){c instanceof a.xg&&(b="",a.t.error("error retrieving hint value in format"))}finally{return b}};var e;e=function(){function a(b,c){var d=c.zones[b];if(K.test(b)){var e=
0,h=b.replace(K,"").split(":"),d=60*parseInt(h[0],10);if(isNaN(d)||2===h.length&&(e=parseInt(h[1],10),isNaN(e)))return;d+=0<=d?e:-e;if(d<I||d>Q)return;d=v(d,1);d=b.replace("/etc//i","").toUpperCase()+"|"+d+"|0|"}void 0!==d&&this.tDa(u(b,d))}function b(){return{fha:function(a,b){var c=b.supplemental.timeZoneData;void 0===c&&B();var d=x(a,c);if(!d){var e=c.links[a];e&&(d=x(e,c))}d||C(a);return d}}}var c={},d,e,h,f,g,n,u,v,w,y,x,z,C,E,B,K=/^Etc\/GMT/i,I=-840,Q=720;w=function(a,b){for(var c=".",d="",
e;0<b;)b-=1,a*=60,e=Math.floor(a+1E-6),c+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX"[e],a-=e,e&&(d+=c,c="");return d};v=function(a,b){for(var c="",d=Math.abs(a),e=Math.floor(d),d=w(d-e,Math.min(~~b,10));0<e;)c="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX"[e%60]+c,e=Math.floor(e/60);0>a&&(c="-"+c);return c&&d?c+d:d||"-"!==c?c||d||"0":"0"};e=function(a){return 96<a?a-87:64<a?a-29:a-48};h=function(a){var b=0,c=a.split("."),d=c[0],c=c[1]||"",h=1,f=0,k=1;45===a.charCodeAt(0)&&
(b=1,k=-1);for(;b<d.length;b++)a=e(d.charCodeAt(b)),f=60*f+a;for(b=0;b<c.length;b++)h/=60,a=e(c.charCodeAt(b)),f+=a*h;return f*k};f=function(a){for(var b=0;b<a.length;b++)a[b]=h(a[b])};g=function(a,b){for(var c=0;c<b;c++)a[c]=Math.round((a[c-1]||0)+6E4*a[c]);a[b-1]=Infinity};n=function(a,b){var c=[],d;for(d=0;d<b.length;d++)c[d]=a[b[d]];return c};u=function(a,b){var c=b.split("|"),d=c[1].split(" "),e=c[2].split(""),h=c[3].split(" ");f(d);f(e);f(h);g(h,e.length);return{name:a,Nea:n(c[0].split(" "),
e),YA:n(d,e),Q_:h}};C=function(a){var b;b=Error("invalid timeZone ID: "+a);b.errorInfo={errorCode:"invalidTimeZoneID",parameterMap:{timeZoneID:a}};throw b;};E=function(){var a;a=Error("The input time does not exist because it falls during the transition to daylight saving time.");a.errorInfo={errorCode:"nonExistingTime"};throw a;};B=function(){var a;a=Error("TimeZone data is missing. Please call require 'ojs/ojtimezonedata' in order to load the TimeZone data.");a.errorInfo={errorCode:"missingTimeZoneData"};
throw a;};a.prototype={tDa:function(a){this.name=a.name;this.Nea=a.Nea;this.Q_=a.Q_;this.YA=a.YA},parse:function(a,b,c,d){var e=this.YA,h=this.Q_,f=h.length-1,k,g,l,n,m,t,r;for(l=0;l<f;l++){k=e[l];g=e[l+1];r=h[l];n=r-6E4*k;m=n+36E5;t=n-36E5;if(a>=n&&a<m&&k>g)if(!0===d)E();else return l+1;if(a>=t&&a<n&&k<g)return b?l:l+1;if(a<r-6E4*k){if(!1===c){if(b)return k<g?l:l+1;if(k<g)return l+1}return l}}return f},Qp:function(a){var b=this.YA.length;return 0<=a&&a<b?parseInt(this.YA[a],10):parseInt(this.YA[b-
1],10)}};y=function(a){return(a||"").toLowerCase().replace(/\//g,"_")};z=function(b,d){var e,h;e=new a(b,d);h=y(e.name);c[h]=e};x=function(a,b){var d=y(a);void 0===c[d]&&z(a,b);return c[y(a)]||null};return{Qe:function(){d||(d=b());return d}}}();var f;f=function(){function a(){return{format:function(a,b,c,e){if(2>=arguments.length||void 0===c)c={useGrouping:!0,style:"decimal"};y(c,"OraNumberConverter.format");var h={};w(b,h,c,e);return d(a,c,b,h,e)},parse:function(a,b,c,d){if("number"===typeof a)return a;
if("[object Number]"===Object.prototype.toString.call(a))return Number(a);if(2>=arguments.length||void 0===c)c={useGrouping:!0,style:"decimal"};y(c,"OraNumberConverter.parse");return e(a,b,c,d)},resolvedOptions:function(a,b,d){if(3>arguments.length||void 0===d)d=c.Lw(a);if(2>arguments.length||void 0===b)b={useGrouping:!0,style:"decimal"};var e=O(a,b,d);return G(e,b,d)}}}var b,d,e,h,f,g,p,n,u,v,w,y,x,z,C,E,B,K,I,Q,A,J,D,M,H,N,Y,L,S,F,R,V,Z,O,G,U=/^[+\-]?infinity$/i,P=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/,
da=/([^+-.0-9]*)([+\-]?\d*\.?\d*(E[+\-]?\d+)?).*$/,X=/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,T=/(^0\.0*)([^0].*$)/,W={trillion:[1E14,1E13,1E12],billion:[1E11,1E10,1E9],million:[1E8,1E7,1E6],thousand:[1E5,1E4,1E3]},ia={trillion:1E12,billion:1E9,million:1E6,thousand:1E3},ga={HALF_UP:"ceil",HALF_DOWN:"floor",DEFAULT:"round"};b=function(a,b,c){var d;for(d=a.length;d<b;d+=1)a=c?"0"+a:a+"0";return a};B=function(a,b,c,d){var e=new RangeError(a+" is out of range.  Enter a value between "+b+" and "+c+" for "+d);
e.errorInfo={errorCode:"numberOptionOutOfRange",parameterMap:{value:a,minValue:b,maxValue:c,propertyName:d}};throw e;};A=function(a,b,c,d,e){a=a[b];return void 0!==a?(a=Number(a),(isNaN(a)||a<c||a>d)&&B(a,c,d,b),Math.floor(a)):e};C=function(a,b){if(void 0===b)return"latn";var c=J(b);void 0===a.numbers["symbols-numberSystem-"+c]&&(c="latn");return c};E=function(a){return a.split("-")[0]};J=function(a){a=a||"en-US";var b=a.indexOf("-u-nu-"),c="latn";-1!==b&&(c=a.substr(b+6,4));return c};w=function(a,
b,d,e){var h=c.ng(a);e=C(h,e);b.numberingSystemKey=e;b.numberingSystem="symbols-numberSystem-"+e;if(void 0!==d.pattern&&0<d.pattern.length)e=d.pattern;else{switch(d.style){case "decimal":e="decimalFormats-numberSystem-";break;case "currency":e="currencyFormats-numberSystem-";break;case "percent":e="percentFormats-numberSystem-";break;default:e="decimalFormats-numberSystem-"}e+=b.numberingSystemKey;e=h.numbers[e].standard;var f=d.decimalFormat;void 0!==f&&"decimal"===d.style&&(b.shortDecimalFormat=
h.numbers["decimalFormats-numberSystem-latn"][f].decimalFormat)}f=E(c.Lw(a));b.plurals=a.supplemental.plurals;b.lang=f;b.pat=e;b.minusSign=h.numbers[b.numberingSystem].minusSign;b.decimalSeparator=h.numbers[b.numberingSystem].decimal;b.exponential=h.numbers[b.numberingSystem].exponential;b.groupingSeparator=h.numbers[b.numberingSystem].group;b.currencyDisplay=d.currencyDisplay;void 0!==d.currency&&(b.currencyCode=d.currency.toUpperCase());b.style=d.style;p(d,e,h,b);void 0===d.pattern&&(b.minimumIntegerDigits=
A(d,"minimumIntegerDigits",1,21,b.minimumIntegerDigits),void 0!==d.maximumFractionDigits&&(b.maximumFractionDigits=A(d,"maximumFractionDigits",0,20,b.maximumFractionDigits),b.maximumFractionDigits<b.minimumFractionDigits&&(b.minimumFractionDigits=b.maximumFractionDigits)),void 0!==d.minimumFractionDigits&&(b.minimumFractionDigits=A(d,"minimumFractionDigits",0,20,b.minimumFractionDigits)),b.maximumFractionDigits<b.minimumFractionDigits&&(b.maximumFractionDigits=b.minimumFractionDigits))};z=function(a){var b=
new TypeError('The property "currency" is required whenthe property "'+a+'" is "currency". An accepted value is a three-letter ISO 4217 currency code.');b.errorInfo={errorCode:"optionTypesMismatch",parameterMap:{propertyName:a,propertyValue:"currency",requiredPropertyName:"currency",requiredPropertyValueValid:"a three-letter ISO 4217 currency code"}};throw b;};H=function(){var a;a=Error("long and short decimalFormats are not supported for parsing");a.errorInfo={errorCode:"unsupportedParseFormat",
parameterMap:{value:"decimal"}};throw a;};y=function(a,b){var d=c.si(a,b),e=d("style","string",["currency","decimal","percent","perMill"],"decimal");"decimal"===e&&(e=d("decimalFormat","string",["standard","short","long"]),"OraNumberConverter.parse"===b&&void 0!==e&&"standard"!==e&&H());var h=d("currency","string");"currency"===e&&void 0===h&&z("style");d("roundingMode","string",["HALF_UP","HALF_DOWN","HALF_EVEN"],"DEFAULT")};L=function(a,b,c){function d(a){var b=0,c=0,e=0,h="";if("0"!==a[0]){for(;"0"!==
a[b]&&b<a.length;)b++;h=a.substr(0,b);e=b}for(b=e;b<a.length;b++)if("0"===a[b])c++;else break;return[h,c]}var e=function(a){var b,c,d;for(b in W)for(d=W[b].length,c=0;c<d;c++)if(W[b][c]<=a)return[b,W[b][c]];return[a,null]}(a),h="";if(null!==e[1]){var h=c.plurals[c.lang](Math.floor(a/ia[e[0]])),f=""+e[1]+"-count-"+h,f=c.shortDecimalFormat[f];void 0===f&&(f=""+e[1]+"-count-other",f=c.shortDecimalFormat[f]);var k=d(f),g=k[1],h=k[0];if(g<f.length){var l=1*Math.pow(10,g),l=e[1]/l*10;a/=l}}e="";void 0!==
f&&(e=f.substr(g+k[0].length));a=N(a,b,c);return h+a+e};Y=function(a,c){var d=a+"",e=0,h=d.split(/e/i),f=h[0];T.lastIndex=0;var k=T.exec(f);null!==k?(e=k[1].length-1,f=k[2]):f=f.replace(".","");var k=1<h.length?parseInt(h[1],10):0,h=parseInt(f,10),g=c.minimumIntegerDigits+c.maximumFractionDigits;f.length>g&&(g-=f.length,h=Math.round(h*Math.pow(10,g)));g=c.minimumIntegerDigits+c.minimumFractionDigits;h=b(h+"",g,!1);k=-1!==d.indexOf(".")?k-(c.minimumIntegerDigits-d.indexOf(".")+e):k-(g-f.length-c.minimumFractionDigits);
d=Math.abs(k);d=b(d+"",c.minExponentDigits,!0);0>k&&(d=c.minusSign+d);e=h.slice(0,c.minimumIntegerDigits);return e=0<h.slice(c.minimumIntegerDigits).length?e+(c.decimalSeparator+h.slice(c.minimumIntegerDigits)+c.exponential+d):e+(c.exponential+d)};N=function(a,c,d){var e=d.groupingSize,h=d.groupingSize0,f,k=(a+"").split(/e/i),g=1<k.length?parseInt(k[1],10):0;f=k[0];var k=f.split("."),n=1<k.length?k[1]:"";if(1<k.length&&n.length>g){var m=Math.min(d.maximumFractionDigits,n.length-g);a=K(a,m,c.roundingMode||
"DEFAULT")}k=(a+"").split(/e/i);g=1<k.length?parseInt(k[1],10):0;f=k[0];k=f.split(".");f=k[0];n=1<k.length?k[1]:"";0<g?(n=b(n,g,!1),f+=n.slice(0,g),n=n.substr(g)):0>g&&(g=-g,f=b(f,g+1,!0),n=f.slice(-g,f.length)+n,f=f.slice(0,-g));n=0<m?d.decimalSeparator+(n.length>m?n.slice(0,m):b(n,m,!1)):0<d.minimumFractionDigits?d.decimalSeparator:"";n=b(n,d.decimalSeparator.length+d.minimumFractionDigits,!1);a=d.groupingSeparator;k="";!1===c.useGrouping&&void 0===c.pattern&&(a="");f=b(f,d.minimumIntegerDigits,
!0);c=f.length-1;for(n=1<n.length?n:"";0<=c;){if(0===e||e>c)return e=f.slice(0,c+1)+(k.length?a+k+n:n);k=f.slice(c-e+1,c+1)+(k.length?a+k:"");c-=e;0<h&&(e=h)}return e=f.slice(0,c+1)+a+k+n};D=function(a,b,c){if("HALF_DOWN"===c||"HALF_EVEN"===c)a=a.substr(b),a=parseInt(a,10),5<a&&(c="HALF_UP");return c};K=function(a,b,c){var d=a.toString().split(".");if(void 0===d[1])return a;if("5"===d[1][b]&&"DEFAULT"!==c)return c=D(d[1],b,c),c=Q(d,c,b),I(a,-b,c,d);b=Math.pow(10,b);b=Math.round(a*b)/b;return isFinite(b)?
b:a};Q=function(a,b,c){var d=ga[b];"HALF_EVEN"===b&&(d=0==(0===c?parseInt(a[0][a[0].length-1],10):parseInt(a[1][c-1],10))%2?ga.HALF_DOWN:ga.HALF_UP);return d};I=function(a,b,c,d){if(0===b)return"5"===d[1][0]?Math[c](a):Math.round(a);d=a.toString().split("e");a=d[0];d=d[1];a=a+"e"+(d?parseInt(d,10)-b:-b);a=parseFloat(a);a=Math[c](a);d=a.toString().split("e");a=d[0];d=d[1];a=a+"e"+(d?parseInt(d,10)+b:b);return a=parseFloat(a)};d=function(a,b,d,e,h){d=c.ng(d);if(!isFinite(a))return Infinity===a||-Infinity===
a?d.numbers[e.numberingSystem].infinity:d.numbers[e.numberingSystem].nan;d=Math.abs(a);!0===e.isPercent||"percent"===b.style?d*=100:!0===e.isPerMill&&(d*=1E3);d="decimal"===b.style&&void 0!==b.decimalFormat&&"standard"!==b.decimalFormat?L(d,b,e):!0===e.useExponentialNotation?Y(d,e):N(d,b,e);b="";b=0>a?b+(e.negativePrefix+d+e.negativeSuffix):b+(e.positivePrefix+d+e.positiveSuffix);a=J(h);void 0===c.Pp[a]&&(a="latn");if("latn"!==a){h=[];for(e=0;e<b.length;e++)"0"<=b[e]&&"9">=b[e]?h.push(c.Pp[a][b[e]]):
h.push(b[e]);return h.join("")}return b};n=function(a,b,d,e){a=c.Tp(a);var h="",f=!1,k=new RegExp("^"+e.numbers[d.numberingSystem].plusSign.replace(X,"\\$1"));a=a.replace(k,"");var g=c.Tp(d.positivePrefix),l=c.Tp(d.positiveSuffix),n=c.Tp(d.negativePrefix),k=c.Tp(d.negativeSuffix),m=new RegExp("^"+(g||"").replace(X,"\\$1")),t=new RegExp((l||"").replace(X,"\\$1")+"$"),r=new RegExp("^"+(n||"").replace(X,"\\$1")),s=new RegExp((k||"").replace(X,"\\$1")+"$");if(!0===r.test(a)&&!0===s.test(a))a=a.replace(r,
""),a=a.replace(s,""),h="-",f=!0;else if(!0===m.test(a)&&!0===t.test(a))a=a.replace(m,""),a=a.replace(t,""),h="+",f=!0;else if("currency"===b.style){b=m=d.currencyCode;var p;void 0!==e.numbers.currencies[m]&&(b=e.numbers.currencies[m].symbol);void 0===d.currencyDisplay||"symbol"===d.currencyDisplay?p=b:"code"===d.currencyDisplay&&(p=m);void 0!==p&&(m=(g||"").replace(p,""),l=(l||"").replace(p,""),n=(n||"").replace(p,""),p=(k||"").replace(p,""),m=new RegExp(("^"+m).replace(X,"\\$1")),t=new RegExp(l.replace(X,
"\\$1")+"$"),r=new RegExp(("^"+n).replace(X,"\\$1")),s=new RegExp(p.replace(X,"\\$1")+"$"),!0===r.test(a)&&!0===s.test(a)?(a=a.replace(r,""),a=a.replace(s,""),h="-",f=!0):!0===m.test(a)&&!0===t.test(a)&&(a=a.replace(m,""),a=a.replace(t,""),h="+",f=!0))}f?d=[h,a]:(d=u(a,d,e),d[2]=!0);return d};u=function(a,b,d){var e=d.numbers[b.numberingSystem].group,h=d.numbers[b.numberingSystem].decimal,f=d.numbers[b.numberingSystem].minusSign,k="",g="";b=c.vj(d.numbers[b.numberingSystem].exponential);a=c.vj(a);
a=a.split(b).join("E");a=a.split(e).join("");b=e.replace(/\u00A0/g," ");e!==b&&(a=a.split(b).join(""));a=a.split(h).join(".");"."===a.charAt(0)&&(a=a.substr(1),g=".");a=a.replace(f,"-");e=da.exec(a);g+=e[2];c.ox(g,"-")?(g=g.substr(1),k="-"):c.ox(a,"+")&&(g=g.substr(1),k="+");return[k,g]};v=function(a,b,d){var e=b.numbers[d.numberingSystem].minusSign;b=b.numbers[d.numberingSystem].plusSign;var h;a=c.Tp(a);e=c.Tp(e);b=c.Tp(b);c.ox(a,e)?h=["-",a.substr(e.length)]:c.ox(a,c.Tp(b))&&(h=["+",a.substr(b.length)]);
return h||["",a]};h=function(a,b){var d=J(b);if(void 0===c.Pp[d])return a;var e,h=[];for(e=0;e<a.length;e++){var f=c.Pp[d].indexOf(a[e]);-1!==f?h.push(f):h.push(a[e])}return h.join("")};f=function(a,b,d){var e={},h=d.numbers[b.numberingSystem].decimal;d=d.numbers[b.numberingSystem].group;a=a.replace(/ /g,"");var f=b.exponential,k=a.indexOf(f.toLowerCase());0>k&&(k=a.indexOf(c.vj(f)));0>k?(b=a,e.exponent=null):(b=a.substr(0,k),e.exponent=a.substr(k+f.length));f=b.indexOf(h);0>f?(a=b,e.fraction=null):
(a=b.substr(0,f),e.fraction=b.substr(f+h.length));a=a.split(d).join("");h=d.replace(/\u00A0/g," ");d!==h&&(a=a.split(h).join(""));e.integer=a;return e};M=function(a,b,d,e){isNaN(a)&&g(b.style,d,e);!0===d.isPercent||"percent"===b.style?a/=100:!0===d.isPerMill&&(a/=1E3);c.si(b,"OraNumberConverter.parse")("roundDuringParse","boolean",[!0,!1],!1)&&(a=x(a,d,b));return a};g=function(a,b,c){var d,e;d="Unparsable number "+c+" The expected number pattern is "+b.pat;switch(a){case "decimal":e="decimalFormatMismatch";
break;case "currency":e="currencyFormatMismatch";break;case "percent":e="percentFormatMismatch"}a=Error(d);a.errorInfo={errorCode:e,parameterMap:{value:c,format:b.pat}};throw a;};e=function(a,b,d,e){var k=c.ng(b),g={},l=h(a,e);w(b,g,d,e);b=NaN;b=l.replace(/ /g,"");if(U.test(b))return b=parseFloat(l);e=n(l,d,g,k);b=e[0];var m=e[1];b=b||"+";if(e[2])return b=parseFloat(b+m),M(b,d,g,a);var r=f(m,g,k);e=r.fraction;m=r.exponent;b+=r.integer;null!==e&&(b+="."+e);null!==m&&(e=v(m,k,g),b+="e"+(e[0]||"+")+
e[1]);P.test(b)?b=parseFloat(b):(b=u(l,g,k),b=parseFloat(b[0]+b[1]));return M(b,d,g,a)};var ca,aa,ba,fa;Z=function(a){var b;b=new SyntaxError('Unexpected character(s) encountered in the pattern "'+a+' An example of a valid pattern is "#,##0.###".');b.errorInfo={errorCode:"optionValueInvalid",parameterMap:{propertyName:"pattern",propertyValue:a,propertyValueHint:"#,##0.###"}};throw b;};F=function(a,b,c){return null!==(new RegExp(c,"i")).exec(a.substr(b,c.length))};V=function(a,b){var c={};null!==ca&&
(b.positivePrefix=R(ca,a,b,c));null!==aa&&(b.positiveSuffix=R(aa,a,b,c));null!==ba&&(b.negativePrefix=R(ba,a,b,c));null!==fa&&(b.negativeSuffix=R(fa,a,b,c));void 0!==c.name&&(b.positiveSuffix="\u00a0"+c.name,b.positivePrefix="","ar"===b.lang?(b.negativeSuffix=a.numbers[b.numberingSystem].minusSign+"\u00a0"+c.name,b.negativePrefix=""):(b.negativeSuffix="\u00a0"+c.name,b.negativePrefix=a.numbers[b.numberingSystem].minusSign))};R=function(a,b,c,d){for(var e="",h=0;h<a.length;){var f=a.charAt(h++);if("'"!==
f){switch(f){case "\u00a4":var k=f=c.currencyCode,g=f;void 0!==b.numbers.currencies[f]&&(k=b.numbers.currencies[f].displayName,g=b.numbers.currencies[f].symbol);void 0===c.currencyDisplay||"symbol"===c.currencyDisplay?f=g:"code"!==c.currencyDisplay&&(f=k,d.name=f);break;case "%":f=b.numbers[c.numberingSystem].percentSign;break;case "\u2030":f=b.numbers[c.numberingSystem].perMille;break;case "-":f=b.numbers[c.numberingSystem].minusSign}e=e.concat(f)}}return e};p=function(a,b,c,d){for(var e=!1,h=!1,
f=0,k=0,g=!0,l=1;0<=l&&k<b.length;--l){for(var n=!1,m="",t="",r=-1,s=1,p=0,u=0,w=0,q=-1,y=-1,v,x=0,g=!0,B=k;B<b.length;++B){var A=b.charAt(B);switch(x){case 0:case 2:if(n){if("'"===A){B+1<b.length&&"'"===b.charAt(B+1)?(++B,g?m=m.concat("''"):t=t.concat("''")):n=!1;continue}}else if("#"===A||"0"===A||","===A||"."===A){x=1;--B;continue}else if("\u00a4"===A){void 0===a.currency&&z("pattern");a.style="currency";(A=B+1<b.length&&"\u00a4"===b.charAt(B+1))&&++B;g?m=m.concat(A?"'\u00a4\u00a4":"'\u00a4"):
t=t.concat(A?"'\u00a4\u00a4":"'\u00a4");continue}else if("'"===A){if("'"===A){B+1<b.length&&"'"===b.charAt(B+1)?(++B,g?m=m.concat("''"):t=t.concat("''")):n=!0;continue}}else if(";"===A){0!==x&&0!==l||Z(b);k=B+1;B=b.length;continue}else if("%"===A){a.style="percent";1!==s&&Z(b);d.isPercent=!0;s=100;g?m=m.concat("'%"):t=t.concat("'%");continue}else if("\u2030"===A){1!==s&&Z(b);a.style="perMill";d.isPerMill=!0;s=1E3;g?m=m.concat("'\u2030"):t=t.concat("'\u2030");continue}else if("-"===A){g?m=m.concat("'-"):
t=t.concat("'-");continue}g?m=m.concat(A):t=t.concat(A);break;case 1:if(1===l)++f;else{0===--f&&(x=2,g=!1);continue}if("#"===A)0<u?++w:++p,0<=q&&0>r&&++q;else if("0"===A)0<w&&Z(b),++u,0<=q&&0>r&&++q;else if(","===A)y=q,q=0;else if("."===A)0<=r&&Z(b),r=p+u+w;else if(F(b,B,"E")){h&&Z(b);h=!0;v=0;for(B+=1;B<b.length&&"0"===b.charAt(B);)++v,++f,++B;(1>p+u||1>v)&&Z(b);x=2;g=!1;--B}else x=2,g=!1,--B,--f}}0===u&&0<p&&0<=r&&(u=r,0===u&&++u,w=p-u,p=u-1,u=1);(0>r&&0<w||0<=r&&(r<p||r>p+u)||0===q||n)&&Z(b);1===
l?(ca=m,aa=t,ba=ca,fa=aa,n=p+u+w,d.minimumIntegerDigits=(0<=r?r:n)-p,d.maximumIntegerDigits=h?p+d.minimumIntegerDigits:2147483647,d.maximumFractionDigits=0<=r?n-r:0,d.minimumFractionDigits=0<=r?p+u-r:0,d.groupingSize=0<q?q:0,d.groupingSize0=y):(ba=m,fa=t,e=!0)}0===b.length&&(ca=aa="",d.minimumIntegerDigits=0,d.maximumIntegerDigits=2147483647,d.minimumFractionDigits=0,d.maximumFractionDigits=2147483647);d.useExponentialNotation=h;d.minExponentDigits=v;if(!e||0===ba.localeCompare(ca)&&0===fa.localeCompare(aa))"currency"===
a.style&&"ar"===d.lang?(fa=aa+"'\u200f-",ba=ca):(fa=aa,ba="'-"+ca);V(c,d)};x=function(a,b,c){var d=0>a;a=K(Math.abs(a),b.maximumFractionDigits,c.roundingMode||"DEFAULT");return d?-a:a};O=function(a,b,d){var e={};y(b,"OraNumberConverter.resolvedOptions");w(a,e,b,d);e.numberingSystemKey=J(d);void 0===c.Pp[e.numberingSystemKey]&&(e.numberingSystemKey="latn");return e};G=function(a,b,c){c={locale:c,style:void 0===b.style?"decimal":b.style,useGrouping:void 0===b.useGrouping?!0:b.useGrouping,numberingSystem:a.numberingSystemKey};
c.minimumIntegerDigits=a.minimumIntegerDigits;c.minimumFractionDigits=a.minimumFractionDigits;c.maximumFractionDigits=a.maximumFractionDigits;"decimal"===b.style&&void 0!==b.decimalFormat&&(c.decimalFormat=b.decimalFormat);"currency"===b.style&&(c.currency=b.currency,c.currencyDisplay=void 0===b.currencyDisplay?"symbol":b.currencyDisplay);void 0!==b.pattern&&(c.pattern=b.pattern);a=b.roundingMode;b=b.roundDuringParse;void 0!==a&&(c.roundingMode=a);void 0!==b&&(c.roundDuringParse=b);return c};return{Qe:function(){S||
(S=a());return S}}}();a.Jh=function(a){this.Init(a)};o_("RegExpValidator",a.Jh,a);a.b.sa(a.Jh,a.Qi,"oj.RegExpValidator");a.Jh.KP="oj-validator.regExp.detail";a.Jh.LP="oj-validator.regExp.summary";a.Jh.prototype.Init=function(b){a.Jh.u.Init.call(this);this.Yb=b};a.b.g("RegExpValidator.prototype.Init",{Init:a.Jh.prototype.Init});a.Jh.prototype.validate=function(b){var c,d,e=this.Yb&&this.Yb.pattern||"",h;if(null===b||void 0===b||""===b)return!0;b=b||0===b?b.toString():b;var f;f=b.match("^("+e+")$");
if(null===f||f[0]!==b)throw this.Yb&&(h=this.Yb.messageSummary||null,c=this.Yb.messageDetail||null,d=this.Yb&&this.Yb.label||""),b={label:d,pattern:e,value:b},h=h?a.va.Lc(h,b):a.va.F(this.XT(),b),c=c?a.va.Lc(c,b):a.va.F(this.mT(),b),new a.Fk(h,c);return!0};a.b.g("RegExpValidator.prototype.validate",{validate:a.Jh.prototype.validate});a.Jh.prototype.Nd=function(){var b=null,c={};this.Yb&&this.Yb.hint&&(c={pattern:this.Yb.pattern},b=a.va.Lc(this.Yb.hint,c));return b};a.b.g("RegExpValidator.prototype.getHint",
{Nd:a.Jh.prototype.Nd});a.Jh.prototype.XT=function(){return a.Jh.LP};a.Jh.prototype.mT=function(){return a.Jh.KP};a.Na={};o_("IntlConverterUtils",a.Na,a);a.Na.isoToDate=function(a){return c.isoToDate(a)};a.Na.isoToLocalDate=function(a){return c.isoToLocalDate(a)};a.Na.dateToLocalIso=function(a){return c.dateToLocalIso(a)};a.Na.c9=function(a){return c.c9(a)};a.Na.getLocalTimeZoneOffset=function(){return c.getLocalTimeZoneOffset()};a.Na.getConverterInstance=function(b){var c="",d={},e=null;b&&("object"===
typeof b&&(b instanceof a.wg||b.parse&&"function"===typeof b.parse||b.format&&"function"===typeof b.format?e=b:(c=b.type,d=b.options||{})),e||(c=c||b)&&"string"===typeof c&&(b=a.za.dj(c),e=b.createConverter(d)));return e};a.Na._minMaxIsoString=function(a,b){if(a){b=b||this.dateToLocalIso(new Date);var c=b.indexOf("T");0===a.indexOf("T")&&0<c&&(a=b.substring(0,c)+a)}return a};a.Na.oy=function(b,c){a.p.mi(c);var d="",e="",h=c.propertyName,f;"optionTypesMismatch"===b?(e=c.requiredPropertyName,f=c.requiredPropertyValueValid,
d=a.va.F("oj-converter.optionTypesMismatch.summary",{propertyName:h,propertyValue:c.propertyValue,requiredPropertyName:e}),e=a.Na.JJ(e,f)):"optionTypeInvalid"===b?(h=c.propertyName,f=c.propertyValueValid,d=a.va.F("oj-converter.optionTypeInvalid.summary",{propertyName:h}),e=a.Na.JJ(h,f)):"optionOutOfRange"===b?(d=a.va.F("oj-converter.optionOutOfRange.summary",{propertyName:h,propertyValue:c.propertyValue}),f=c.propertyValueValid,e=a.Na.JJ(h,f)):"optionValueInvalid"===b&&(d=a.va.F("oj-converter.optionValueInvalid.summary",
{propertyName:h,propertyValue:c.propertyValue}),f=c.propertyValueHint,e=a.Na.JJ(h,f));return new a.xg(d,e)};a.Na.JJ=function(b,c){var d;return c?("string"===typeof c?d="oj-converter.optionHint.detail":(d="oj-converter.optionHint.detail-plural",c=c.join(a.va.F("oj-converter.plural-separator"))),a.va.F(d,{propertyName:b,propertyValueValid:c})):""};a.Na.KMa=function(){return""};a.Na._copyTimeOver=function(a,b){return c._copyTimeOver(a,b)};a.Na._clearTime=function(a){return c._clearTime(a)};a.Na._dateTime=
function(a,b,d){return c._dateTime(a,b,d)};a.Na._normalizeIsoString=function(a){return c._normalizeIsoString(a)};var h;h=function(){function a(){return{format:function(a,b,d,e){var h;if("number"===typeof a)h=c.dateToLocalIso(new Date(a));else if("string"===typeof a){if(h=c.trim(a),""===h)return null}else return null;if(2>=arguments.length||void 0===d)d={year:"numeric",month:"numeric",day:"numeric"};h=c.oA(h);h=s(b,d,h,e);var f=c.QM(e);void 0===c.Pp[f]&&(f="latn");if("latn"!==f){var k,g=[];for(k=0;k<
h.length;k++)"0"<=h[k]&&"9">=h[k]?g.push(c.Pp[f][h[k]]):g.push(h[k]);return g.join("")}return h},HM:function(a,b,c){return p(a,b,c)},parse:function(a,b,c,d){return q(a,b,c,d)},resolvedOptions:function(a,b,d){if(3>arguments.length||void 0===d)d=c.Lw(a);if(2>arguments.length||void 0===b)b={year:"numeric",month:"numeric",day:"numeric"};var e,h,f,k=c.si(b,"OraDateTimeConverter.resolvedOptions");void 0!==b&&(h=k("isoStrFormat","string",[na,pa,Va,ka,va],va),f=k("dst","boolean",[!0,!1],!1),e=b.timeZone);
var g=c.QM(d);void 0===c.Pp[g]&&(g="latn");return void 0!==b&&void 0!==b.pattern?ua(h,e,f,d,g,b):void 0!==b?oa(b,k,e,f,h,a,g,d):ba(a,d,g)},vt:function(a){a=c.isoToLocalDate(a);var b=new Date(a.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));a=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((a-b)/864E5)/7)+1},MNa:function(a){return Ta(a)},we:function(a,b,d){var e=Aa(a,b);a=q(a,d,e,"en-US");b=q(b,d,e,"en-US");d=a.value.replace("Z","");b=b.value.replace("Z","");d=c.Ru(d);d=Date.UTC(d[0],
d[1]-1,d[2],d[3],d[4],d[5],d[6]);b=c.Ru(b);b=Date.UTC(b[0],b[1]-1,b[2],b[3],b[4],b[5],b[6]);return d-b},SNa:function(a){return x(a)}}}var b,d,f,g,s,q,p,n,u,v,w,y,x,z,C,E={},B={},K,I,Q,A,J,D,M,H,N,Y,L,S,F,R,V,Z,O,G,U,P,da,X,T,W,ia,ga,ca,aa,ba,fa,ha,oa,ta,ua,ma,xa,ea,Aa,Da,Sa,Qa,ya,Ca,za,Ra,Ea,Fa,Ga,Ha,Ta,Ua,Ia,Ja,Ka,wa,La,qa,ra,Wa,Ma,Na,Xa,Ya,la,Za,$a,ab,Oa=/(\d{1,4})\D+?(\d{1,4})/g,Pa=/(\d{1,4})\D+?(\d{1,4})\D+?(\d{1,4})/g,bb=/^[M][^M]|[^M]M[^M]|[^M]M$|^M$/g,jb=/^[L][^L]|[^L]L[^L]|[^L]L$|^L$/g,cb=
/^[d][^d]|[^d]d[^d]|[^d]d$|^d$|^d[^d]/,db=/(?:^|[^h])h[^h]|[^H]H[^H]|[^k]k[^k]|[^K]K[^K]|^H[^H]|^H$|[^h]h$/,eb=/'.*'/,fb=/'[^d]*d[^d]*'/,gb=/(\d{1,2})(?:\D+?(\d{1,2}))?(?:\D+?(\d{1,2}))?(?:\D+?(\d{1,3}))?/g,Ba=/h|H|K|k/g,hb=/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,sa=/ccccc|cccc|ccc|cc|c|EEEEE|EEEE|EEE|EE|E|dd|d|MMMMM|MMMM|MMM|MM|M|LLLLL|LLLL|LLL|LL|L|yyyy|yy|y|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|aa|a|SSS|SS|S|zzzz|zzz|zz|z|v|ZZZ|ZZ|Z|XXX|XX|X|VV|GGGGG|GGGG|GGG|GG|G/g,ib={0:"sun",1:"mon",2:"tue",3:"wed",4:"thu",
5:"fri",6:"sat"},na="zulu",ka="local",va="auto",Va="invariant",pa="offset",ja={MMM:{token:"months",style:"format",mLen:"abbreviated",matchIndex:0,key:"month",value:"short",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},MMMM:{token:"months",style:"format",mLen:"wide",matchIndex:0,key:"month",value:"long",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},MMMMM:{token:"months",style:"format",mLen:"narrow",matchIndex:0,key:"month",value:"narrow",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},LLL:{token:"months",
style:"stand-alone",mLen:"abbreviated",matchIndex:1,key:"month",value:"short",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},LLLL:{token:"months",style:"stand-alone",mLen:"wide",matchIndex:1,key:"month",value:"long",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},LLLLL:{token:"months",style:"stand-alone",mLen:"narrow",matchIndex:1,key:"month",value:"narrow",regExp:"(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)"},E:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},
EE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},EEE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},EEEE:{token:"days",style:"format",dLen:"wide",matchIndex:0,key:"weekday",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},EEEEE:{token:"days",style:"format",dLen:"narrow",matchIndex:0,key:"weekday",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},c:{token:"days",style:"stand-alone",
dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},cc:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},ccc:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},cccc:{token:"days",style:"stand-alone",dLen:"wide",matchIndex:1,key:"weekday",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},ccccc:{token:"days",style:"stand-alone",
dLen:"narrow",matchIndex:1,key:"weekday",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},h:{token:"time",timePart:"hour",start1:0,end1:11,start2:1,end2:12,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},hh:{token:"time",timePart:"hour",start1:0,end1:11,start2:1,end2:12,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},K:{token:"time",timePart:"hour",start1:0,end1:11,start2:0,end2:11,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},KK:{token:"time",timePart:"hour",start1:0,end1:11,start2:0,end2:11,key:"hour",
value:"2-digit",regExp:"(\\d\\d?)"},H:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},HH:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},k:{token:"time",timePart:"hour",start1:0,end1:23,start2:1,end2:24,key:"hour",value:"numeric",regExp:"(\\d\\d?)"},kk:{token:"time",timePart:"hour",start1:0,end1:23,start2:1,end2:24,key:"hour",value:"2-digit",regExp:"(\\d\\d?)"},m:{token:"time",
timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"numeric",regExp:"(\\d\\d?)"},mm:{token:"time",timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"2-digit",regExp:"(\\d\\d?)"},s:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"numeric",regExp:"(\\d\\d?)"},ss:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"2-digit",regExp:"(\\d\\d?)"},S:{token:"time",timePart:"millisec",start1:0,end1:999,
start2:0,end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},SS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},SSS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:"(\\d{1,3})"},d:{token:"dayOfMonth",key:"day",value:"numeric",getPartIdx:2,regExp:"(\\d\\d?)"},dd:{token:"dayOfMonth",key:"day",value:"2-digit",getPartIdx:2,regExp:"(\\d\\d?)"},M:{token:"monthIndex",
key:"month",value:"numeric",getPartIdx:1,regExp:"(\\d\\d?)"},MM:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,regExp:"(\\d\\d?)"},L:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:"(\\d\\d?)"},LL:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,regExp:"(\\d\\d?)"},y:{token:"year",key:"year",value:"numeric",regExp:"(\\d{1,4})"},yy:{token:"year",key:"year",value:"2-digit",regExp:"(\\d\\d?)"},yyyy:{token:"year",key:"year",value:"numeric",regExp:"(\\d{1,4})"},
a:{token:"ampm",key:"hour12",value:!0,regExp:"(\\D*)"},z:{token:"tzAbbrev",regExp:"(.+?)"},v:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:"(.+?)"},zz:{token:"tzAbbrev",regExp:"(.+?)"},zzz:{token:"tzAbbrev",regExp:"(.+?)"},zzzz:{token:"tzFull",regExp:"(.+?)"},Z:{token:"tzhm",regExp:"([+-]?\\d{1,4})"},ZZ:{token:"tzhm",regExp:"([+-]?\\d{1,4})"},ZZZ:{token:"tzhm",regExp:"([+-]?\\d{1,4})"},X:{token:"tzh",regExp:"([+-]?\\d{1,2})"},XX:{token:"tzhm",key:"XX",regExp:"([+-]?\\d{1,4})"},XXX:{token:"tzhsepm",
regExp:"([+-]?\\d{1,2}:\\d{1,2})"},VV:{token:"tzid",regExp:"(.+?)"},G:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},GG:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},GGG:{token:"era",key:"era",value:"short",regExp:"(\\D+|\\D+\\d\\d?)"},GGGG:{token:"era",key:"era",value:"long",regExp:"(\\D+|\\D+\\d\\d?)"},GGGGG:{token:"era",key:"era",value:"narrow",regExp:"(\\D+|\\D+\\d\\d?)"},"/":{token:"slash",regExp:"(\\/)"}};y=function(a){a=a["two-digit-year-start"];if(void 0===
a||isNaN(a))a=1950;return a=parseInt(a,10)};x=function(a){return"h"===a.supplemental.prefferedHours[c.bga(a._ojLocale_)]};K=function(a){return 0===a%400?!0:0===a%100?!1:0===a%4?!0:!1};I=function(a,b){switch(b){case 0:case 2:case 4:case 6:case 7:case 9:case 11:return 31;case 1:return K(a)?29:28;default:return 30}};C=function(a,b,d){b=c.ng(b);var e=c.si(a,d);a=e("formatType","string",["date","time","datetime"],"date");d=e("dateFormat","string",["short","medium","long","full"],"short");var e=e("timeFormat",
"string",["short","medium","long","full"],"short"),h=b.dates.calendars.gregorian;b=h.dateFormats;var h=h.timeFormats,f,k,g;switch(d){case "full":f=b.full;break;case "long":f=b["long"];break;case "medium":f=b.medium;break;case "short":f=b["short"]}switch(e){case "full":k=h.full;break;case "long":k=h["long"];break;case "medium":k=h.medium;break;case "short":k=h["short"]}void 0===f||"datetime"!==a&&"date"!==a||(g=f);void 0===k||"datetime"!==a&&"time"!==a||(g=g?g+" "+k:k);return g};d=function(a,b){for(var c=
0,d=!1,e=0,h=a.length;e<h;e++){var f=a.charAt(e);switch(f){case "'":d?b.push("'"):c++;d=!1;break;case "\\":d&&b.push("\\");d=!d;break;default:b.push(f),d=!1}}return c};n=function(a,b,c){var d;d=void 0!==b.year||void 0!==b.month||void 0!==b.weekday||void 0!==b.day;b=void 0!==b.hour||void 0!==b.minute||void 0!==b.second;d=d&&b?"MM/dd/yy hh:mm:ss a":d?"MM/dd/yy":"hh:mm:ss a";c=new SyntaxError("Unexpected character(s) "+c+' encountered in the pattern "'+a+' An example of a valid pattern is "'+d+'".');
c.errorInfo={errorCode:"optionValueInvalid",parameterMap:{propertyName:"pattern",propertyValue:a,"propertyValueHint ":d}};throw c;};D=function(a,b,d,e){b=c.ng(b).dates.calendars.gregorian.dateTimeFormats.availableFormats;d="weekday era year month day hour minute second timeZoneName".split(" ");var h={"2-digit":0,numeric:1,narrow:2,"short":3,"long":4},f=-Infinity,k=void 0,g,l,n;for(n in b){l=!1;var m={};m.pattern=b[n];for(var t=0;null!==(g=sa.exec(n));)g=g[0],"h"!==g&&"hh"!==g||e?"H"!==g&&"HH"!==g||
!e?void 0!==ja[g]&&(m[ja[g].key]=ja[g].value):l=!0:l=!0;if(!l){for(var r in d)l=a[d[r]],g=m[d[r]],void 0===l&&void 0!==g?t-=20:void 0!==l&&void 0===g?t-=120:void 0!==l&&void 0!==g&&(l=Math.max(Math.min(h[g]-h[l],2),-2),2===l?t-=6:1===l?t-=3:-1===l?t-=6:-2===l&&(t-=8));t>f&&(f=t,k=m)}}return void 0!==k?k.pattern:null};Q=function(a,b,d){var e="",h="",f={},k={};a=c.si(a,d);d=a("era","string",["narrow","short","long"]);e+=M(f,"era",d,{narrow:"GGGGG","short":"GGG","long":"GGGG"});d=a("year","string",["2-digit",
"numeric"]);e+=M(f,"year",d,{"2-digit":"yy",numeric:"y"});d=a("month","string",["2-digit","numeric","narrow","short","long"]);e+=M(f,"month",d,{"2-digit":"MM",numeric:"M",narrow:"MMMMM","short":"MMM","long":"MMMM"});d=a("weekday","string",["narrow","short","long"]);e+=M(f,"weekday",d,{narrow:"EEEEE","short":"E","long":"EEEE"});d=a("day","string",["2-digit","numeric"]);var e=e+M(f,"day",d,{"2-digit":"dd",numeric:"d"}),g=a("hour12","boolean",[!0,!1]);void 0===g&&(g=x(b));d=a("hour","string",["2-digit",
"numeric"]);h=!0===g?h+M(k,"hour",d,{"2-digit":"hh",numeric:"h"}):h+M(k,"hour",d,{"2-digit":"HH",numeric:"H"});d=a("minute","string",["2-digit","numeric"]);h+=M(k,"minute",d,{"2-digit":"mm",numeric:"m"});d=a("second","string",["2-digit","numeric"]);h+=M(k,"second",d,{"2-digit":"ss",numeric:"s"});d=a("timeZoneName","string",["short","long"]);h+=M(k,"timeZoneName",d,{"short":"v","long":"v"});return[e,h,f,k]};M=function(a,b,c,d){return void 0!==c?(a[b]=c,d[c]):""};A=function(a,b,d){var e=a;b=c.si(b,
d);d=b("year","string",["2-digit","numeric"]);var h={"2-digit":"yy",numeric:"yyyy"};void 0!==d&&(e=e.replace(/y{1,4}/,h[d]));d=b("month","string",["2-digit","numeric","narrow","short","long"]);if(void 0!==d){var h={"2-digit":"MM",numeric:"M",narrow:"MMMMM","short":"MMM","long":"MMMM"},f={"2-digit":"LL",numeric:"L",narrow:"LLLLL","short":"LLL","long":"LLLL"};void 0!==h[d]&&2<h[d].length?(e=e.replace(/M{3,5}/,h[d]),e=e.replace(/L{3,5}/,f[d])):"2-digit"===d&&(bb.lastIndex=0,(d=bb.test(a))&&(e=e.replace("M",
"MM")),(d=jb.test(a))&&(e=e.replace("L","LL")))}d=b("weekday","string",["narrow","short","long"]);void 0!==d&&(e=e.replace(/E{1,5}/,{narrow:"EEEEE","short":"EEE","long":"EEEE"}[d]),e=e.replace(/c{1,5}/,{narrow:"ccccc","short":"ccc","long":"cccc"}[d]));d=b("day","string",["2-digit","numeric"]);void 0!==d&&"2-digit"===d&&(cb.lastIndex=0,fb.lastIndex=0,b=fb.test(a),d=cb.test(a),!0==d&&!1===b&&(e=e.replace("d","dd")));return e};J=function(a,b,d){var e=a;"2-digit"===c.si(b,d)("hour","string",["2-digit",
"numeric"])&&(db.lastIndex=0,eb.lastIndex=0,b=a.replace(eb,""),b=db.exec(b),null!==b&&(Ba.lastIndex=0,e=Ba.exec(b[0]),e=a.replace(e[0],e[0]+e[0])));return e};Ca=function(a,b,c){var d,e=0;for(d in b)e++;if(1<e)return null;for(d=a.length;0<d;d--)if(b=c[a.substr(0,d)],void 0!==b)return b;return a};Sa=function(a,b){var d="symbols-numberSystem-"+c.fIa(a,b);return a.numbers[d].decimal};f=function(a,b,d,e){function h(b){if(void 0!==s){var c=Sa(f,d),c=void 0===m&&void 0===t&&void 0===r?"S":"ss"+c+"SSS";b=
b.replace("ss",c);void 0===r&&(a.second=void 0)}var c=g("timeZoneName","string",["short","long"]),e={"short":"z","long":"zzzz"};void 0!==c&&(b=b.replace(/v/,e[c]));return b}var f=c.ng(b),k=c.Lw(b),g=c.si(a,e),l=g("formatMatcher","string",["basic","munger"],"munger"),n=0;for(n in a)n++;0===n&&(a={year:"numeric",month:"numeric",day:"numeric"});var m,t,r,s;s=g("millisecond","string",["numeric","2-digit"]);r=g("second","string",["numeric","2-digit"]);void 0!==s&&(m=g("hour","string",["numeric","2-digit"]),
t=g("minute","string",["numeric","2-digit"]),a.second="2-digit");n=Q(a,b,e);if(void 0!==E[k]){var p=E[k].dates.calendars.gregorian.dateTimeFormats[n[0]+n[1]];if(void 0!==p)return p=h(p)}if(""===n[0]&&""===n[1])return C(a,b,e);var u=f.dates.calendars.gregorian.dateTimeFormats.availableFormats,w=u[n[0]],q=g("hour12","boolean",[!0,!1]);void 0===q&&(q=x(b));void 0===w&&""!==n[0]&&(w=Ca(n[0],n[2],u),null===w&&(w=D(n[2],b,0,q)),null!==w?"basic"!==l&&(w=A(w,a,e)):w=n[0]);p=u[n[1]];void 0===p&&""!==n[1]&&
(p=Ca(n[1],n[3],u),null===p&&(p=D(n[3],b,0,q)),null!==p?"basic"!==l&&(p=J(p,a,e)):p=n[1]);b=w||"";void 0!==p&&(b=""!==b?b+(" "+p):p);void 0===E[k]&&(E[k]={},E[k].dates={},E[k].dates.calendars={},E[k].dates.calendars.gregorian={},E[k].dates.calendars.gregorian.dateTimeFormats={});E[k].dates.calendars.gregorian.dateTimeFormats[n[0]+n[1]]=b;return b=h(b)};wa=function(a){a=a.split(" ");var b=a[0].split("-"),c=new Date(b[0],b[1]-1,b[2]);1<a.length&&(b=a[1].split(":"),c.setHours(b[0]),c.setMinutes(b[1]));
return c.getTime()};Ka=function(a,b,c){a=new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5]);a=a.getTime();b=b.split("/");c=c[b[0]];if(void 0===c)return null;c=c[b[1]];if(void 0===c)return null;var d=c.length,e,h,f,k,g;for(b=0;b<d;b++)if(f=c[b].usesMetazone._from,k=c[b].usesMetazone._to,g=c[b].usesMetazone._mzone,void 0===f&&void 0===k||void 0===f&&void 0!==k&&(h=wa(k),a<=h)||void 0!==f&&void 0===k&&(e=wa(f),a>=e)||void 0!==f&&void 0!==k&&(e=wa(f),h=wa(k),a>=e&&a<h))return g};La=function(a,b,d,e,h){var f=c.ng(a),
k="",g=d.timeZone;d=c.si(d,"OraDateTimeConverter")("dst","boolean",[!0,!1],!1);if(void 0===g)return k;var l=Ka(b,g,a.supplemental.metazones),n,k="standard";h=h?!1:!0;a=qa(g,a);b=ra(a,b,d,h,!0);void 0!==f.dates.timeZoneNames.metazone&&(n=f.dates.timeZoneNames.metazone[l]);if(void 0===n)return c.wA("UTC",a.Qp(b),!0,!0);f=1===e?n["long"]:n["short"];e=a.Qp(b);e<a.Qp(b+1)&&(k="daylight");return void 0!==f&&(k=f[k],void 0!==k)?k:c.wA("UTC",e,!0,!0)};qa=function(a,b){return e.Qe().fha(a,b)};ra=function(a,
b,c,d,e){return a.parse(Date.UTC(b[0],b[1]-1,b[2],b[3],b[4],b[5]),c,d,e)};s=function(a,b,e,h){function k(a,b){switch(b){case 0:return a[0];case 1:return a[1];case 2:return a[2];case 3:return ib[(new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5])).getDay()]}}function g(a,b,d,e){b=k(b,d);a.push(1<e?c.tc(b,e):b)}function l(a,d,e,h,f){var k;switch(h.timePart){case "hour":k=11===h.end1?d[3]%12:d[3];"h"===f||"hh"===f?0===k&&(k=12):"k"!==f&&"kk"!==f||0!==k||(k=24);break;case "minute":k=d[4];break;case "second":k=
void 0===b.second&&void 0!==b.millisecond?0:d[5];break;case "millisec":k=d[6]}a.push(1<e?c.tc(k,e):k)}function t(b,d,h){var f,k=d.timeZone;d=q("dst","boolean",[!0,!1],!1);h=h?!1:!0;if(void 0!==k)f=qa(k,a),b=ra(f,b,d,h,!0),f=-f.Qp(b);else if(e.format!==ka)switch(e.format){case pa:f=e.timeZone.split(":");b=parseInt(f[1],10);f=60*parseInt(f[0],10)+(c.ox(e.timeZone,"-")?-b:b);break;case na:f=0;break;default:f=0}return f}var p,s=e.isoStrParts,u=0===e.dateTime.indexOf("T"),w=c.ng(a),q=c.si(b,"OraDateTimeConverter.format");
p=b.pattern||f(b,a,h,"OraDateTimeConverter.format");h=[];var y,x=0,w=w.dates.calendars.gregorian,v=b.timeZone;for(e.format!==ka&&void 0!==v&&Ga(e,b,a);;){var z=sa.lastIndex,B=sa.exec(p),z=p.slice(z,B?B.index:p.length),x=x+d(z,h);if(!B)break;if(x%2)h.push(B[0]);else switch(y=B[0],B=y.length,z=ja[y],z.token){case "days":y=w[z.token][z.style][z.dLen];h.push(y[k(s,3)]);break;case "months":y=w[z.token][z.style][z.mLen];h.push(y[k(s,1)]);break;case "dayOfMonth":case "monthIndex":h.push(g(h,s,z.getPartIdx,
B));break;case "year":y=s[0];2===B&&(y%=100);h.push(c.tc(y,B));break;case "time":l(h,s,B,z,y);break;case "ampm":y=12>s[3]?w.dayPeriods.format.wide.am:w.dayPeriods.format.wide.pm;h.push(y);break;case "tzhm":y=t(s,b,u);0===y?"XX"===z.key?h.push("Z"):h.push("+0000"):h.push((0>=y?"-":"+")+c.tc(Math.floor(Math.abs(y/60)),2)+c.tc(Math.floor(Math.abs(y%60)),2));break;case "tzhsepm":y=t(s,b,u);0===y?h.push("Z"):h.push((0>=y?"-":"+")+c.tc(Math.floor(Math.abs(y/60)),2)+":"+c.tc(Math.floor(Math.abs(y%60)),2));
break;case "tzh":y=t(s,b,u);0===y?h.push("Z"):h.push((0>=y?"-":"+")+c.tc(Math.floor(Math.abs(y/60)),2));break;case "tzid":y=void 0!==v?v:e.format===na?"UTC":"";h.push(y);break;case "tzAbbrev":y=La(a,s,b,0,u);h.push(y);break;case "tzFull":y=La(a,s,b,1,u);h.push(y);break;case "era":y=w.eras.eraAbbr;h.push(y["1"]);break;case "slash":h.push("/");break;default:n(p,b,y)}}return h.join("")};Y=function(a,b){return a.getFullYear()===b.getFullYear()};L=function(a,b){return 1===b.getFullYear()-a.getFullYear()};
S=function(a,b){return L(b,a)};F=function(a,b){return Y(a,b)&&a.getMonth()===b.getMonth()};R=function(a,b){return Y(a,b)?1===b.getMonth()-a.getMonth():L(a,b)?11===a.getMonth()&&0===b.getMonth():!1};V=function(a,b){return R(b,a)};H=function(a,b){var c=a.getDate(),d=b.getDate();R(a,b)&&(d+=I(a.getFullYear,a.getMonth()));return d-c};N=function(a,b){var d=a.supplemental.weekData.firstDay,e=d[c.bga(a._ojLocale_)];void 0===e&&(e=d["001"]);d=b-e;0>d&&(d+=7);return d};Z=function(a,b,c){if(b>c){var d=b;b=
c;c=d}if(!F(b,c)&&!R(b,c))return!1;a=H(b,c)+N(a,b.getDay());return 0<=a&&6>=a};O=function(a,b,c){if(!F(b,c)&&!R(b,c))return!1;a=H(b,c)+N(a,b.getDay());return 7<=a&&13>=a};G=function(a,b,c){return O(a,c,b)};U=function(a,b){return Y(a,b)&&F(a,b)&&a.getDate()===b.getDate()};P=function(a,b){return F(a,b)||R(a,b)?1===H(a,b):!1};da=function(a,b){return P(b,a)};Wa=function(a,b,d){var e=d.timeZone;if(c.oA(a).format===ka&&void 0===e)return a;d={yZ:"zulu"};void 0!==e&&(d.timeZone=e,d.dst=!0);a=q(a,b,d,"en-US");
d={lOa:c.getLocalTimeZoneOffset(),yZ:"local"};return q(a.value,b,d,"en-US").value};Ma=function(a,b,d){a=c.Ru(a);b=c.Ru(b);d?(a=Date.UTC(a[0],a[1]-1,a[2],0,0,0,0),b=Date.UTC(b[0],b[1]-1,b[2],0,0,0,0)):(a=Date.UTC(a[0],a[1]-1,a[2],a[3],a[4],a[5],a[6]),b=Date.UTC(b[0],b[1]-1,b[2],b[3],b[4],b[5],b[6]));return a-b};Na=function(a,b){return a.replace(/\{(\d+)\}/g,function(a,c){return b[c]})};Xa=function(a,b,d,e){var h,f;h={pOa:"numeric",ZNa:"numeric",FNa:"numeric"};var k=c.ng(d),g=k.dates.calendars.gregorian.dateTimeFormats["long"],
l=k.dates.calendars.gregorian.days.format.wide,n=k.dates.fields;f=c.isoToLocalDate(b);var m=c.isoToLocalDate(a),k=c.oA(b);if(U(m,f))h=n.day["relative-type-0"];else if(P(m,f))h=n.day["relative-type-1"];else if(da(m,f))h=n.day["relative-type--1"];else if(f=f.getDay(),f=ib[f],a=Ma(b,a,!0),a/=864E5,-1>a&&-7<a)h=n[f]["relative-type--1"];else if(1<a&&7>a)h=l[f];else return s(d,h,k,"en-US");if(e)return h;d=s(d,{QNa:"numeric",XNa:"numeric"},k,"en-US");g=g.replace(/'/g,"");return g=Na(g,[d,h])};Ya=function(a,
b,d,e){var h=c.ng(e).dates.fields;d=c.si(d,"OraDateTimeConverter.formatRelative")("dateField","string","day week month year hour minute second".split(" "));var f=c.isoToLocalDate(a),k=c.isoToLocalDate(b);switch(d){case "day":return U(f,k)?h.day["relative-type-0"]:P(f,k)?h.day["relative-type-1"]:da(f,k)?h.day["relative-type--1"]:la(a,b,e,"day");case "week":return Z(e,f,k)?h.week["relative-type-0"]:O(e,f,k)?h.week["relative-type-1"]:G(e,f,k)?h.week["relative-type--1"]:la(a,b,e,"week");case "month":return F(f,
k)?h.month["relative-type-0"]:R(f,k)?h.month["relative-type-1"]:V(f,k)?h.month["relative-type--1"]:la(a,b,e,"month");case "year":return Y(f,k)?h.year["relative-type-0"]:L(f,k)?h.year["relative-type-1"]:S(f,k)?h.year["relative-type--1"]:la(a,b,e,"year");case "hour":return la(a,b,e,"hour");case "minute":return la(a,b,e,"minute");case "second":return la(a,b,e,"second")}return null};ab=function(a){return 4800*a/146097};$a=function(a){var b=ab(a/864E5);return{year:Math.round(b/12),month:Math.round(b),
week:Math.round(a/6048E5),day:Math.round(a/864E5),hour:Math.round(a/36E5),minute:Math.round(a/6E4),second:Math.round(a/1E3),millisecond:a}};Za=function(a){return a.split("-")[0]};la=function(a,b,d,e){var h=Za(c.Lw(d)),f=d.supplemental.plurals;d=c.ng(d).dates.fields;b=Ma(b,a,!1);a=$a(Math.abs(b));null===e&&(e=46>a.second&&"second"||46>a.minute&&"minute"||23>a.hour&&"hour"||7>a.day&&"day"||4>a.week&&"week"||12>a.month&&"month"||"year");if("second"===e&&46>a.second)return d[e]["relative-type-0"];h="relativeTimePattern-count-"+
f[h](a[e]);f=0>b?"relativeTime-type-past":"relativeTime-type-future";h=d[e][f][h];void 0===h&&(h=d[e][f]["relativeTimePattern-count-other"]);return h=Na(h,[a[e]])};p=function(a,b,d){var e=c.dateToLocalIso(new Date);if("number"===typeof a)a=c.dateToLocalIso(new Date(a));else if("string"===typeof a){if(""===c.trim(a))return null}else return null;void 0===d&&(d={formatUsing:"displayName"});var h=c.si(d,"OraDateTimeConverter.formatRelative"),f=h("relativeTime","string",["fromNow","toNow"],"fromNow"),
k=h("dateField","string","day week month year hour minute second".split(" "));a=Wa(a,b,d);"toNow"===f&&(f=e,e=a,a=f);return"calendar"===h("formatUsing","string",["displayName","calendar"],"displayName")?(d=h("dateOnly","boolean",[!0,!1],!1),Xa(e,a,b,d)):void 0!==k?Ya(e,a,d,b):la(e,a,b,null)};za=function(a,b){var c;c=Error("The weekday "+a+" does not match the date "+b);c.errorInfo={errorCode:"dateToWeekdayMismatch",parameterMap:{weekday:a,date:b}};throw c;};ya=function(a,b,c){var d;2===c?(d='The value "'+
a+'" does not match the expected date-time format "'+b+'"',c="datetimeFormatMismatch"):0===c?(d='The value "'+a+'" does not match the expected date format "'+b+'"',c="dateFormatMismatch"):(d='The value "'+a+'" does not match the expected time format "'+b+'"',c="timeFormatMismatch");d=Error(d);d.errorInfo={errorCode:c,parameterMap:{value:a,format:b}};throw d;};X=function(a,b){100>b&&(b+=100*Math.floor(a/100)+(b<a%100?100:0));return b};Da=function(a,b){var d={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},
e;for(e in a)if(c.trim(c.vj(a[e]))===c.trim(b))return d[e];return-1};Qa=function(a,b){for(var d in a)if(c.trim(c.vj(a[d]))===c.trim(b))return d-1;return-1};aa=function(a,b,d){var e=c.ng(a),h;a=e.dates.calendars.gregorian.days.format;e=e.dates.calendars.gregorian.days["stand-alone"];switch(d){case 0:h=[a.abbreviated,a.wide];break;case 1:h=[e.abbreviated,e.wide]}b=c.vj(b);d=Da(h[0],b);-1===d&&(d=Da(h[1],b));return d};fa=function(a,b,d){var e=-1,h=c.ng(a);a=h.dates.calendars.gregorian.months.format;
h=h.dates.calendars.gregorian.months["stand-alone"];switch(d){case 0:d=[a.wide,a.abbreviated];break;case 1:d=[h.wide,h.abbreviated];break;case 2:d=[a.wide,a.abbreviated,h.wide,h.abbreviated];break;default:return-1}b=c.vj(b);for(var f in d)if(e=Qa(d[f],b),-1!==e)break;return e};ta=function(a,b){for(var c=a.replace(hb,"\\\\$1"),e=["^"],h=[],f=0,k=0,g;null!==(g=sa.exec(c));){var l=c.slice(f,g.index),f=sa.lastIndex,k=k+d(l,e);if(k%2)e.push(g[0]);else{var l=g[0],t;void 0!==ja[l]?t=ja[l].regExp:n(a,b,l);
t&&e.push(t);h.push(g[0])}}d(c.slice(f),e);e.push("$");c={regExp:e.join("").replace(/\s+/g,"\\s+"),groups:h};return{}[a]=c};ea=function(a,b,c,d,e,h,f){if(b<c||b>d)throw b=new RangeError(e+" is out of range.  Enter a value between "+h+" and "+f+" for "+a),b.errorInfo={errorCode:"datetimeOutOfRange",parameterMap:{value:e,minValue:h,maxValue:f,propertyName:a}},b;};T=function(a,b){for(var c=0;c<a.length;c++)for(var d in a[c])if(d===b)return parseInt(c,10);return 0};ca=function(a,b,d,e,h){var f=c.ng(e).dates.calendars.gregorian.dayPeriods.format.wide.pm,
k=e=gb.lastIndex=0,g=0,l=0,n=gb.exec(b);null===n&&ya(b,d,h);void 0!==n[1]&&(e=parseInt(n[1],10));void 0!==n[2]&&(k=parseInt(n[2],10));void 0!==n[3]&&(g=parseInt(n[3],10));void 0!==n[4]&&(l=parseInt(n[4],10));Ba.lastIndex=0;n=Ba.exec(d);switch(n[0]){case "h":12===e&&(e=0);ea("hour",e,0,11,e,1,12);b=c.vj(b).indexOf(c.vj(f));-1!==b&&12>e&&(e+=12);break;case "K":ea("hour",e,0,11,e,0,11);b=c.vj(b).indexOf(c.vj(f));-1!==b&&12>e&&(e+=12);break;case "H":ea("hour",e,0,23,e,0,23);break;case "k":24===e&&(e=
0),ea("hour",e,0,23,e,1,24)}ea("minute",k,0,59,k,0,59);ea("second",g,0,59,g,0,59);ea("millisec",l,0,999,l,0,999);a.setHours(e,k,g,l)};Ja=function(a,b){var d=c.ng(b),e=d.dates.calendars.gregorian.days.format,d=d.dates.calendars.gregorian.days["stand-alone"],e=[e.wide,e.abbreviated,d.wide,d.abbreviated],d=!1,h,f,k;for(f in e){for(k in e[f])if(h=e[f][k],(new RegExp(h+"\\b","i")).test(a)){d=!0;break}if(d)break;h=null}return h};ia=function(a,b,d,e,h){Pa.lastIndex=0;var f=Pa.exec(a);null===f&&ya(a,b,h?
2:0);var k=[{y:b.indexOf("y")},{M:b.indexOf("M")},{d:b.indexOf("d")}];k.sort(function(a,b){for(var c in a)break;for(var d in b)break;return a[c]-b[d]});var g,l,n,m,t,r,s=T(k,"d"),p=!1,u=!1;for(r=1;3>=r;r++){var w=f[r];if(2<w.length||31<w)g=w,p=!0,m=r-1}p||(m=T(k,"y"),g=f[T(k,"y")+1]);for(r=0;3>r;r++)if(r!==m&&12<f[r+1]){n=f[r+1];u=!0;t=r;break}if(u){for(r=0;3>r;r++)if(r!==t&&r!==m){l=f[r+1];break}void 0===l&&(l=f[T(k,"M")+1])}else m===T(k,"d")?(n=f[T(k,"y")+1],l=f[T(k,"M")+1]):m===T(k,"M")?(n=f[T(k,
"d")+1],l=f[T(k,"y")+1]):(n=f[T(k,"d")+1],l=f[T(k,"M")+1]);l-=1;f=I(g,l);u&&s!==t&&12<l&&ea("month",n,0,11,n,1,12);ea("month",l,0,11,l+1,1,12);ea("day",n,1,f,n,1,f);g=X(y(d),parseInt(g,10));ea("year",g,0,9999,g,0,9999);d=new Date(g,l,n);g=Ja(a,e);null!==g&&(l=aa(e,g,0),d.getDay()!==l&&za(g,d.getDate()));d={value:d,offset:"",warning:"lenient parsing was used"};h&&(a=a.substr(Pa.lastIndex),0===a.length?d.value.setHours(0,0,0,0):ca(d.value,a,b,e,2));d.value=c.dateToLocalIso(d.value);return d};ga=function(a,
b,d,e,h){var f=a;a=c.vj(a);var k=c.ng(e),g=k.dates.calendars.gregorian.months.format,k=k.dates.calendars.gregorian.months["stand-alone"],g=[g.wide,g.abbreviated,k.wide,k.abbreviated],k=!1,l,n,m,t;for(n in g){l=[];for(m in g[n])t=c.vj(g[n][m]),l.push({idx:m,name:t});l.sort(function(a,b){return b.idx-a.idx});for(m in l)if(t=l[m].name,-1!==a.indexOf(t)){k=!0;a=a.replace(t,"");break}if(k)break}if(!k)return ia(f,b,d,e,h);m=fa(e,t,2);ea("month",m,0,11,m,1,12);t=Ja(f,e);n=new RegExp(t+"\\W","i");null!==
t&&(a=a.replace(n,""));Oa.lastIndex=0;g=Oa.exec(a);null===g&&ya(f,b,h?2:0);f=[{y:b.indexOf("y")},{d:b.indexOf("d")}];f.sort(function(a,b){for(var c in a)break;for(var d in b)break;return a[c]-b[d]});var r,p,k=!1;for(n=1;2>=n;n++)if(l=g[n],2<l.length||31<l)r=l,k=!0,p=n-1;k||(p=T(f,"y"),r=g[T(f,"y")+1]);p=p===T(f,"d")?g[T(f,"y")+1]:g[T(f,"d")+1];r=X(y(d),parseInt(r,10));ea("year",r,0,9999,r,0,9999);d=new Date(r,m,p);null!==t&&(n=aa(e,t,0),d.getDay()!==n&&za(t,d.getDate()));r=I(r,m);ea("day",p,1,r,p,
1,r);r={value:d,offset:"",warning:"lenient parsing was used"};h&&(a=a.substr(Oa.lastIndex),0===a.length?r.value.setHours(0,0,0,0):ca(r.value,a,b,e,2));r.value=c.dateToLocalIso(r.value);return r};W=function(a,b,d,e){switch(v(d,"OraDateTimeConverter.parse")){case 0:return ga(a,b,d,e,!1);case 1:return d=new Date,ca(d,a,b,e,1),{value:c.dateToLocalIso(d),offset:"",warning:"lenient parsing was used"};case 2:return ga(a,b,d,e,!0)}return null};Ia=function(a,b,d,e,h,f,k,g,l,n,m){h=c.ng(a).dates.calendars.gregorian[b][h];
a="months"===b?fa(a,d,f):aa(a,d,f);ea(m,a,k,g,d,h[e][l],h[e][n]);return a};Ua=function(a,b,c,d){b[c.timePart]=a;"h"===d||"hh"===d?12===a&&(b[c.timePart]=0):"k"!==d&&"kk"!==d||24!==a||(b[c.timePart]=0);ea(c.timePart,b[c.timePart],c.start1,c.end1,a,c.start2,c.end2)};g=function(a,b,d,e){var h=c.ng(e),f=h.dates.calendars.gregorian.eras.eraAbbr["1"],k=c.Tp(f);a=a.replace(f,k);var f=ta(b,d),g=(new RegExp(f.regExp)).exec(a);if(null===g)return W(a,b,d,e);for(var l=f.groups,n=null,m=null,t=null,r=null,f="",
k=null,p=!1,s,u={hour:0,minute:0,second:0,millisec:0},h=h.dates.calendars.gregorian.dayPeriods.format.wide.pm,w=y(d),q=0,x=l.length;q<x;q++){var v=g[q+1];if(v){var z=l[q],B=parseInt(v,10),A=ja[z];switch(A.token){case "months":m=Ia(e,A.token,v,A.mLen,A.style,A.matchIndex,0,11,"1","12","month name");break;case "days":s=v;r=Ia(e,A.token,v,A.dLen,A.style,A.matchIndex,0,6,"sun","sat","weekday");break;case "time":Ua(B,u,A,z);break;case "dayOfMonth":t=B;if(31<t)return W(a,b,d,e);break;case "monthIndex":m=
B-1;if(11<m)return W(a,b,d,e);break;case "year":n=X(w,B);ea("year",n,0,9999,n,0,9999);break;case "ampm":p=-1!==c.vj(v).indexOf(c.vj(h));break;case "tzhm":f=v.substr(-2);f=v.substr(0,3)+":"+f;break;case "tzhsepm":f=v;break;case "tzh":f=v+":00";break;case "tzid":k=v}}}a=new Date;null===n&&(n=a.getFullYear());null===m&&null===t?(m=a.getMonth(),t=a.getDate()):null===t&&(t=1);b=I(n,m);ea("day",t,1,b,t,1,b);a.setFullYear(n,m,t);null!==r&&a.getDay()!==r&&za(s,a.getDate());p&&12>u.hour&&(u.hour+=12);a=[n,
m+1,t,u.hour,u.minute,u.second,u.millisec];s=c.zKa(a);null!==k&&(e=qa(k,e),f=ra(e,a,!1,!0,!0),f=-e.Qp(f),f=c.wA("",f,!1,!0));""!==f&&(s+=f);return{value:s}};u=function(a,b,c){var e=c.replace(hb,"\\\\$1"),h=["^"],f=0,k=0;for(a={locale:a,numberingSystem:b,calendar:"gregorian"};null!==(b=sa.exec(e));){var g=e.slice(k,b.index),k=sa.lastIndex,f=f+d(g,h);if(!(f%2)&&(b=b[0],"/"!==b&&"zzzz"!==b&&"zzz"!==b&&"zz"!==b&&"z"!==b))if(void 0!==ja[b])if(void 0!==ja[b].key&&(a[ja[b].key]=ja[b].value),"kk"===b||"HH"===
b||"H"===b||"k"===b)a.hour12=!1;else{if("KK"===b||"hh"===b||"h"===b||"K"===b)a.hour12=!0}else n(c,a,b)}return a};z=function(a){a=u("","",a);var b=void 0!==a.hour||void 0!==a.minute||void 0!==a.second||void 0!==a.millisecond;return void 0===a.year&&void 0===a.month&&void 0===a.weekday&&void 0===a.day||!b?b?1:0:2};w=function(a){a=a.indexOf("T");return-1===a?0:0<a?2:1};v=function(a,b){if(void 0!==a.pattern)return z(a.pattern);var d=c.si(a,b),e=void 0!==d("hour","string",["2-digit","numeric"])||void 0!==
d("minute","string",["2-digit","numeric"])||void 0!==d("second","string",["2-digit","numeric"])||void 0!==d("millisecond","string",["numeric"]),h=void 0!==d("year","string",["2-digit","numeric"])||void 0!==d("month","string",["2-digit","numeric","narrow","short","long"])||void 0!==d("day","string",["2-digit","numeric"])||void 0!==d("weekday","string",["narrow","short","long"]);if(h&&e)return 2;if(e)return 1;if(h)return 0;d=d("formatType","string",["date","time","datetime"],"date");return"datetime"===
d?2:"time"===d?1:0};Ha=function(a,b){var c=ra(a,b,!1,!0,!1);return Math.max(a.Qp(c),a.Qp(c+1))};Ga=function(a,b,d){var e=a.isoStrParts,h=a.format,f=b.timeZone;c.si(b,"OraDateTimeConverter.parse");b=qa(f,d);var k;d=Date.UTC(e[0],e[1]-1,e[2],e[3],e[4],e[5]);switch(h){case pa:a=a.timeZone;k=a.split(":");h=parseInt(k[1],10);k=60*parseInt(k[0],10)+(c.ox(a,"-")?-h:h);break;case na:k=0}a=Ha(b,e);a=b.parse(d-6E4*(a+k),!1,!0,!1);a=-b.Qp(a);b=new Date(Date.UTC(e[0],e[1]-1,e[2],e[3],e[4],e[5]));k=b.getUTCMinutes()+
(a-k);b.setUTCHours(b.getUTCHours()+(k/60<<0),k%60);e[0]=b.getUTCFullYear();e[1]=b.getUTCMonth()+1;e[2]=b.getUTCDate();e[3]=b.getUTCHours();e[4]=b.getUTCMinutes();e[5]=b.getUTCSeconds()};Fa=function(a,b){var d,e="";switch(a){case 0:e=c.tc(b[0],4)+"-"+c.tc(b[1],2)+"-"+c.tc(b[2],2);break;case 1:e="T"+c.tc(b[3],2)+":"+c.tc(b[4],2)+":"+c.tc(b[5],2);d=b[6];0<d&&(e+="."+c.xO(c.tc(d,3)));break;default:e=c.tc(b[0],4)+"-"+c.tc(b[1],2)+"-"+c.tc(b[2],2)+"T"+c.tc(b[3],2)+":"+c.tc(b[4],2)+":"+c.tc(b[5],2),d=b[6],
0<d&&(e+="."+c.xO(c.tc(d,3)))}return e};Ea=function(a,b,d,e,h,f){a=qa(a,h);b=ra(a,b,d,e,f);return c.wA("",a.Qp(b),!0,!0)};Ra=function(a,b,d,e){var h,f=c.si(d,"OraDateTimeConverter.parse"),k=f("isoStrFormat","string",[na,pa,Va,ka,va],va);h=f("dst","boolean",[!0,!1],!1);var g=!0,f=b.isoStrParts,l=b.timeZone,n=d.timeZone;b=b.format;var m=d.isoStrFormat;d=Fa(a,f);if(0===a||"local"===m)return d;1===a&&(g=!1);switch(k){case pa:void 0===n&&b===pa?d+=l:void 0===n&&b===ka?d+="":void 0===n&&b===na?d+="+00:00":
void 0!==n&&(e=Ea(n,f,h,g,e,!0),d+=e);break;case na:k=0;void 0===n?b===pa&&(e=l.split(":"),h=parseInt(e[1],10),k=60*parseInt(e[0],10)+(c.ox(e[0],"-")?-h:h),k=-k):(e=qa(n,e),h=ra(e,f,h,g,!0),k=e=e.Qp(h));0!==k&&(d=new Date(Date.UTC(f[0],f[1]-1,f[2],f[3],f[4],f[5],f[6])),k=d.getUTCMinutes()+k,d.setUTCHours(d.getUTCHours()+(k/60<<0),k%60),f[0]=d.getUTCFullYear(),f[1]=d.getUTCMonth()+1,f[2]=d.getUTCDate(),f[3]=d.getUTCHours(),f[4]=d.getUTCMinutes(),f[5]=d.getUTCSeconds(),d=Fa(a,f));d+="Z";break;case va:void 0!==
n?(e=Ea(n,f,h,g,e,!0),d+=e):(e=l)&&(d+=e)}return d};q=function(a,b,d,e){var h=c.QM(e);void 0===c.Pp[h]&&(h="latn");if("latn"!==h){var k,l=[];for(k=0;k<a.length;k++){var n=c.Pp[h].indexOf(a[k]);-1!==n?l.push(n):l.push(a[k])}a=l.join("")}if(2>=arguments.length||void 0===d)d={year:"numeric",month:"numeric",day:"numeric"};k={};!0===c.bQ.test(a)?(l=a,h=w(a)):(k=d.pattern||f(d,b,e,"OraDateTimeConverter.parse"),h=v(d,"OraDateTimeConverter.parse"),k=g(a,k,d,b),l=k.value);l=c.oA(l);void 0!==d.timeZone&&l.format!==
ka&&Ga(l,d,b);l=Ra(h,l,d,b);k.value=l;return k};Aa=function(a,b){var d={isoStrFormat:ka},e=c.oA(a),h=c.oA(b).format;if(e.format===ka||h===ka)return d;d.isoStrFormat=na;return d};ua=function(a,b,c,d,e,h){d=u(d,e,h.pattern);d.pattern=h.pattern;void 0!==a&&(d.isoStrFormat=a);void 0!==b&&(d.timeZone=b);void 0!==c&&(d.dst=c);d["two-digit-year-start"]=y(h);return d};ma=function(a,b,c,d){var e=!1;void 0!==c&&(b.dst=c);c=a("year","string",["2-digit","numeric"]);void 0!==c&&(b.year=c,e=!0);c=a("era","string",
["narrow","short","long"]);void 0!==c&&(b.era=c,e=!0);c=a("month","string",["2-digit","numeric","narrow","short","long"]);void 0!==c&&(b.month=c,e=!0);c=a("day","string",["2-digit","numeric"]);void 0!==c&&(b.day=c,e=!0);c=a("weekday","string",["narrow","short","long"]);void 0!==c&&(b.weekday=c,e=!0);c=a("hour","string",["2-digit","numeric"]);void 0!==c&&(b.hour=c,e=!0,c=a("hour12","boolean",[!0,!1]),void 0===c&&(c=x(d)),b.hour12=c);c=a("minute","string",["2-digit","numeric"]);void 0!==c&&(b.minute=
c,e=!0);c=a("second","string",["2-digit","numeric"]);void 0!==c&&(b.second=c,e=!0);c=a("millisecond","string",["numeric"]);void 0!==c&&(b.millisecond=c,e=!0);return e};ha=function(a,b,c,d){b=C(b,c,h.resolvedOptions);c=d("formatType","string",["date","time","datetime"],"date");var e=d("dateFormat","string",["short","medium","long","full"],"short");d=d("timeFormat","string",["short","medium","long","full"],"short");a.formatType=c;if("datetime"===c||"date"===c)a.dateFormat=e;if("datetime"===c||"time"===
c)a.timeFormat=d;a.patternFromOptions=b};xa=function(a,b){var c=a("formatUsing","string",["displayName","calendar"]);void 0!==c&&(b.formatUsing=c);c=a("dateField","string","day week month year hour minute second".split(" "));void 0!==c&&(b.dateField=c);c=a("relativeTime","string",["fromNow","toNow"]);void 0!==c&&(b.relativeTime=c);c=a("dateOnly","boolean",[!0,!1]);void 0!==c&&(b.dateOnly=c)};oa=function(a,b,c,d,e,h,k,g){k={locale:g,numberingSystem:k,calendar:"gregorian"};var l,n=0;for(l in a)n++;
if(0===n)return k.year="numeric",k.month="numeric",k.day="numeric",k;void 0!==c&&(k.timeZone=c,void 0!==e&&(k.isoStrFormat=e));xa(b,k);d=ma(b,k,d,h);k["two-digit-year-start"]=y(a);if(!d)return ha(k,a,h,b),k;void 0!==c&&(l=b("timeZoneName","string",["short","long"]),void 0!==l&&(k.timeZoneName=l));k.patternFromOptions=f(k,h,g,"OraDateTimeConverter.resolvedOptions");return k};ba=function(a,b,c){a=f({year:"numeric",month:"numeric",day:"numeric"},a,b,"OraDateTimeConverter.resolvedOptions");return{calendar:"gregorian",
locale:b,numberingSystem:c,year:"numeric",month:"numeric",day:"numeric",patternFromOptions:a}};Ta=function(a){function b(d){for(var e in d){d=f.fha(e,a);d=Ha(d,r);var h;var k=e;h=d;var g=l,p=k.split("/"),k=p[0],s=p[1],u=p="",w={},q=n[k];void 0!==q&&(p=q[s],void 0!==p&&(p=p.exemplarCity,void 0!==p&&(p=" "+p)));k=k+"/"+s;k=Ka(r,k,a.supplemental.metazones);void 0!==g&&(k=g[k]);void 0!==k&&null!==k&&void 0!==k["long"]&&(u=k["long"].generic,void 0===u&&(u=k["long"].standard),void 0!==u&&(u=" - "+u));g=
"(UTC)";0!==h&&(g=c.wA("UTC",h,!0,!0),g="("+g+")");void 0===p||void 0===u?h=null:(w.offsetLocName=g+p+u,w.locName=p+u,h=w);null!==h&&(m.push({id:e,displayName:h}),t[e]=d)}}var d=c.Lw(a);if(void 0!==B[d]){var h=B[d].availableTimeZones;if(void 0!==h)return h}var f=e.Qe(),k={sLa:"variant"},g=c.Lw(a),h=c.ng(a),l=h.dates.timeZoneNames.metazone,n=h.dates.timeZoneNames.zone,m=[],t={},h=new Date,r=[h.getFullYear(),h.getMonth()+1,h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds()],h=a.supplemental.timeZoneData;
b(h.zones);b(h.links);m.sort(function(a,b){return t[b.id]-t[a.id]+a.displayName.locName.localeCompare(b.displayName.locName,g,k)});for(var h=m.length,p=0;p<h;p++)m[p].displayName=m[p].displayName.offsetLocName;void 0===B[d]&&(B[d]={},B[d].availableTimeZones=m);return m};return{Qe:function(){b||(b=a());return b}}}();a.zk=function(a){this.Init(a)};o_("LengthValidator",a.zk,a);a.zk.Xc={countBy:"codeUnit"};o_("LengthValidator.defaults",a.zk.Xc,a);a.b.sa(a.zk,a.Qi,"oj.LengthValidator");a.zk.prototype.Init=
function(b){var c=b.countBy;a.zk.u.Init.call(this);this.$i=void 0!==b.min?parseInt(b.min,10):null;this.Xj=void 0!==b.max?parseInt(b.max,10):null;if(isNaN(this.$i))throw Error("length validator's min option is not a number. min option is "+b.min);if(isNaN(this.Xj))throw Error("length validator's max option is not a number. max option is "+b.min);if(null!==this.$i&&0>this.$i)throw Error("length validator's min option cannot be less than 0. min option is "+b.min);if(null!==this.Xj&&1>this.Xj)throw Error("length validator's max option cannot be less than 1. max option is "+
b.max);this.Lra=void 0===c?a.zk.Xc.countBy:c;b&&(this.DD=b.hint||{},this.QC=b.messageSummary||{},this.PC=b.messageDetail||{})};a.b.g("LengthValidator.prototype.Init",{Init:a.zk.prototype.Init});a.zk.prototype.Nd=function(){var b=null,c=this.DD,d=c.exact,e=c.inRange,h=c.max,c=c.min,f=this.Xj,g=this.$i,p=a.va;null!==g&&null!==f?g!==f?(b={min:g,max:f},b=e?p.Lc(e,b):p.F("oj-validator.length.hint.inRange",b)):(b={length:g},b=d?p.Lc(d,b):p.F("oj-validator.length.hint.exact",b)):null!==g?(b={min:g},b=c?
p.Lc(c,b):p.F("oj-validator.length.hint.min",b)):null!==f&&(b={max:f},b=h?p.Lc(h,b):p.F("oj-validator.length.hint.max",b));return b};a.zk.prototype.validate=function(b){var c=this.PC,d=this.QC,e="",h,f=this.Xj,e=d.tooLong,d=d.tooShort,g=c.tooLong,c=c.tooShort,p=this.$i,n;h="";var u=a.va;n=""+b;h=this.vf(n);if((null===p||h>=this.$i)&&(null===f||h<=this.Xj))return n;h<this.$i?(b={value:b,min:p},h=d?u.Lc(d,b):u.F("oj-validator.length.messageSummary.tooShort"),e=c?u.Lc(c,b):u.F("oj-validator.length.messageDetail.tooShort",
b)):(b={value:b,max:f},h=e?u.Lc(e,b):u.F("oj-validator.length.messageSummary.tooLong"),e=g?u.Lc(g,b):u.F("oj-validator.length.messageDetail.tooLong",b));throw new a.Fk(h,e);};a.b.g("LengthValidator.prototype.validate",{validate:a.zk.prototype.validate});a.zk.prototype.vf=function(b){var c=b.length,d,e=0;switch(this.Lra.toLowerCase()){case "codepoint":for(d=0;d<c;d++)55296===(b.charCodeAt(d)&63488)&&e++;a.p.assert(0===e%2,"the number of surrogate chars must be an even number.");b=c-e/2;break;default:b=
c}return b}});